有没有办法分享不止一张图片作为Instagram Story的贴纸?

时间:2019-06-18 19:42:30

标签: android android-intent instagram instagram-api instagram-story

此文档显示了如何仅发送一个标签,但是我想发送多个。有什么办法吗?

https://developers.facebook.com/docs/instagram/sharing-to-stories/

private void sendToInstagram(){
    // Instantiate implicit intent with ADD_TO_STORY action,
    // background asset, sticker asset, and attribution link
    Intent intent = new Intent("com.instagram.share.ADD_TO_STORY");
    intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
    intent.setDataAndType(selectedPhotoUri, "image/*");
    intent.putExtra("interactive_asset_uri", selectedStickerUri);

    // Verify if the Activity will resolve implicit intent
    this.grantUriPermission(
            "com.instagram.android", selectedStickerUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
    if (this.getPackageManager().resolveActivity(intent, 0) != null) {
        this.startActivityForResult(intent, REQUEST_SEND_TO_INSTAGRAM);
    }
}    

1 个答案:

答案 0 :(得分:0)

直到今天还没有办法做到这一点,至少我找不到。