【问题标题】:Is there any way to share more than one image as sticker to Instagram Story?有什么方法可以分享多个图像作为 Instagram Story 的贴纸?
【发布时间】:2019-11-01 12:07:49
【问题描述】:

本文档展示了如何只发送一个贴纸,但我想发送多个。有什么办法吗?

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);
    }
}    

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-23
      相关资源
      最近更新 更多