0

I want to send photo directly to instagram without launching it. Is it possible?

 File file = new File("/mnt/" + path);
         Uri uri = Uri.fromFile(file);
                Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
                        shareIntent.setType("image/*");
                        shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
                        shareIntent.setPackage("com.instagram.android");
                        context.startActivity(shareIntent);
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Surabhi
  • 23
  • 6

1 Answers1

1

As of June 21, 2017, Instagram doesn't have any API or method you can use to post an image to Instagram without opening the app. However, you can find other API endpoints that you can use without opening Instagram from the link below:

https://www.instagram.com/developer/endpoints/

ElamParithi Arul
  • 377
  • 1
  • 11