Search code examples
javascriptinstagraminstagram-api

Instagram api not returning my following list


I am trying to get following list using Instagram API(Follows) so i have generated an access_token and now I am trying to call this URL

https://api.instagram.com/v1/users/self/follows?access_token=my_access_token

but it always returns this response even when I am following multiple people

{"pagination": {}, "meta": {"code": 200}, "data": []}

When I call this method it returns my profile data

https://api.instagram.com/v1/users/self/?access_token=my_access_token

I am using a sandbox client and my Instagram account is an admin of that client.

What am I doing wrong?


Solution

  • In sandbox mode, you will only see the sandbox approved users in the following list, add one of the users you follow to sandbox mode, and it will show just that user as your following.