Reputation: 921
I am trying Instagram api to fetch followers list. I have generated client id, secret and access token.
https://api.instagram.com/v1/users/self/?access_token=7295104237.9baac5e.680b2694931642a18e3758b3cd8aff55
This API works properly. It shows follows count as 2.
But when I run below API with same access token, It does not return any data of the username, etc:
https://api.instagram.com/v1/users/self/follows?access_token=7295104237.9baac5e.680b2694931642a18e3758b3cd8aff55
Please could anyone help me with this. I've been searching for this since hours now.
Upvotes: 0
Views: 787
Reputation: 921
Finally found an answer to this!
My app is in sandbox mode. Until one of your followers/someone you follow doesn't become your sandbox users, their data will not be listed by the followers/followed-by API, or any other API for that matter.
This is because this info is considered as public_content and will only completely accessible after app is live and completely given permission for by Instagram.
So.. Just add one of your followers/someone you follow to your sandbox users! And your sorted!!
Upvotes: 0
Reputation:
You may not have access to theses actions.
Go to the https://www.instagram.com/developer/
Click the settings icon. Find your api account and click Manage, after that click Permission. You'll see there about your api information.
Approved - featured - which you can use
N/A - featured - which you cannot use
Upvotes: 2