有什么方法可以将多张图像作为贴纸分享到 Instagram 故事吗?
Is there any way to share more than one image as sticker to 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);
}
}
直到今天都没有办法做到这一点,至少我找不到。
本文档显示了如何只发送一张贴纸,但我想发送多张。有什么办法吗?
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);
}
}
直到今天都没有办法做到这一点,至少我找不到。