Home » Android » Passing caption to Instagram with Android Intent Stopped Working?

Passing caption to Instagram with Android Intent Stopped Working?

Posted by: admin June 15, 2020 Leave a comment

Questions:

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.

How to&Answers:

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:
Instagram caption