Passing caption to Instagram with Android Intent Stopped Working?

折月煮酒 提交于 2019-12-09 06:07:41

问题


I used to send an image to Instagram on Android from my app using this code :

shareIntent.setPackage("com.instagram.android");
shareIntent.putExtra(Intent.EXTRA_TEXT, caption);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(tempFile));

With the latest version of Instagram the caption isn't working anymore.

Does anyone know if this is a bug or perhaps another extra is being used.

Thanks.


回答1:


Looks like this feature has been removed... http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing

Here is a good way to help your users:



来源:https://stackoverflow.com/questions/31712465/passing-caption-to-instagram-with-android-intent-stopped-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!