how to share gif as a direct message on instagram programmatically in android.?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



how to share gif as a direct message on instagram programmatically in android.?



i want to share GIF from my application as a direct message on INSTAGRAM. please help me. i have done as a story and feed but i want to share as a direct message on INSTAGRAM.



problem is that when i share gif to instagram it display only two
option either feed or stories. but i want to share as direct
message(DM) to instagram using my android app.


Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("image/gif");
Uri uri = FileProvider.getUriForFile(getApplicationContext(),
getApplicationContext().getPackageName() +
".my.package.name.provider", sharingGifFile);
shareIntent.setPackage("com.instagram.android");
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(shareIntent);





what is the problem?
– Anubhav Gupta
Sep 8 at 11:06





problem is that when i share gif to instagram it display only two option either feed or stories. but i want to share as direct message(DM) to instagram using my android app.
– Jaymin Bhadani
Sep 8 at 11:14









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS