6

I am studying to integrate Instagram into my app.But I have some confusion. I found 2 API document: https://www.instagram.com/developer/ and https://developers.facebook.com/docs/instagram-api/. They have differences about supporting API Endpoints as well as how to use. So, what are they and what should we use the one for my app?

I need to get followers and following of user. But I could not found any APIs support for that functions.

Could you please help, I really need it for my app.

Thanks a lot

Ray Nguyen
  • 61
  • 1
  • 1
  • 3

2 Answers2

2

As of 1st of June 2016. Now you're only able to get the list of your own followers/followings.

You can read about it here.

This api is used to get own followers/following list :

https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN

Manzurul Hoque Rumi
  • 2,911
  • 4
  • 20
  • 43
  • 1
    Thanks a lot, Manzurul. I also found it from Instagram API document. But I dont know why there are some websites can collect user information from Instagram, here is example: https://socialblade.com/instagram/user/therock – Ray Nguyen Feb 19 '19 at 02:39
  • where to get this access token? – Dane411 Apr 11 '21 at 20:11
0

I was using the documentation found on the Instagram website, which will show you lots of end points but only let you use these two if your app has not been approved. At least that was the case until a few days ago, when accessing those endpoints started throwing off CORS errors.

David C
  • 64
  • 2
  • 9
  • Thank you David! What is approval for Instagram API? I only see 2 user end points from your link. Do you have any documents for extra API with approved app or account? – Ray Nguyen Feb 19 '19 at 06:29
  • 1
    Ray it looks like there were some more endpoints when I first checked out those docs, and they removed them on 12/11/18. There is a section that allows you to ask for more than sandbox permissions for your app, but now that the API is deprecated they might be ignoring that completely. It does look like they are shifting to the same Graph API they use with facebook. To answer your question about socialblade, well, I can't say for sure, but I'm pretty sure if you have enough money you can get whatever access you want. If you're a small fry developer like me, you might be out of luck! – David C Feb 19 '19 at 20:35
  • Yes, haha. I am developing a small app, so its too difficult for me to access necessary APIs from Instagram. I am trying to study on Graph API. I hope that we will have more endpoints from it. Thank you very much, David – Ray Nguyen Feb 20 '19 at 03:10