1

本文档展示了如何只发送一个贴纸,但我想发送多个。有没有办法做到这一点?

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

1 回答 1

0

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

于 2020-12-22T15:34:59.783 回答