Search code examples
instagraminstagram-api

Getting Instagram followers after policy changes on June 1, 2016


Before the Instagram policy changes (which made on June 1, 2016) my application showed a list of all the following users' info of the logged in user. I get this by the following URL GET request:

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

After the changes, I get a list of only the Sandbox users the logged on user is following after. (I added Sandbox user to keep developing this app).

But, in fact, I want to get all the users' info the logged on user is following after.

If it only happens in Sandbox environment it's OK but what about the production environment?

After I submitted my app, can I get all the following list? Or I'll get only the users who logged in to my app (like Facebook does)?

Thank You


Solution

  • Krisrak's answer is correct, sandbox mode is why you are not seeing results. Here's a bit more details on how it works:

    NOTE: What follows is explained more clearly in this summary of how the new Instagram API rules

    “Sandbox mode” is the (unintuitively-named) gatekeeper walling off most of what you want to do. This is the default status for all clients, that have not undergone the strict submission process. An API client in sandbox mode has extremely limited permissions. In fact, it has fewer permissions than an anonymous user viewing public content because your app basically lives on a tiny desert island in which you are the only Instagram user and only your past twenty posts exist. So, for example, the /media/search endpoint will only return the media you uploaded near a given location, excluding the media from everyone else or any posts beyond your last twenty.

    ...

    Sandbox users are other Instagram users that you “invite” to your client. The main reason to do this is so that your app will then be able to “see” their last twenty posts in addition to your own. In other words, when they accept the invitation, they show up on the tiny desert island where your app lives.