Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram API not returning followers

I'm authenticated with Instagram, and I got an access token with scope follower_list. Then I tried to get my followers list:

https://api.instagram.com/v1/users/self/followed-by?access_token=123.456

and all I got was an empty array, like following

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

I don't really know if this is a problem from Instagram side or this is an expected behavior since I'm on Sandbox mode (although the documentation says I can expect to get real data even on Sandbox mode)

like image 289
Luiz E. Avatar asked Dec 22 '16 15:12

Luiz E.


People also ask

What happened Instagram API?

On the 29th of June, 2020, Instagram will stop using the old API (“Basic Permission”) to display photos from personal Instagram accounts to widgets. 3rd party apps using this, current API will no longer be able to display photos from your account if they don't switch to the new API after this date.

Did Instagram change their API?

Facebook and Instagram replaced their old API with a new one called Graph API. It is now the primary way for apps to read and write to the Facebook social graph. All of their SDKs and products (including Instagram) interact with the Graph API in some way, and their other APIs are extensions of the Graph API.


1 Answers

This is expected behavior.

In sandbox mode you will only get data from you and your sandbox users.

Add one of your followers to your sandbox, then only that user will be in API response. Once you go live, all users will be in API response.

like image 188
krisrak Avatar answered Nov 05 '22 04:11

krisrak