Cannot access subscribers in instagram test environment

I am trying to check the Instagram application in the sandbox, I am trying to get some statistics and warnings about new / lost subscribers ... but this is not possible due to sandbox restrictions; followers in authAccount are hidden. I understand that I cannot access the accounts from the sandbox as primary accounts, but I must be able to check ALL followers and subsequent users.

Please Instagram team to fix this!

I want to check pagination, but this is not possible due to sandbox restrictions.

As now established

https://api.instagram.com/v1/users/self/follows?access_token=XXX&count=100

returns only empty result

+4
source share
4 answers

It is not broken, it is by design.

You need two things:

  • Enable follower_listas one of the authentication areas
  • Add some users to your client’s tab .

Once you have a suitable scope and several users in your isolated sandbox, you can follow the sandboxes. Queries created by an isolated client only return users that you manually added to the sandbox.

This is somehow confusing, but what made me go.

+4
source

, Sandbox. . , 3 , .

0

, . OAuth !

, .

/

:

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

/

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

, , API . , , , - , .

API API, :

//[ ]/? Access_token = access_token

, , self/follow self/follow, .. . , -! , Instagram. (, , .) API , .

This leaves us with the following API endpoints:

{user id} / relationship

Example

v1 / user / {user ID} / relationship? Access_token = ACCESS SIGN

Again, this will obviously only result in a return of the relationship status between the authenticated user and the user with the user ID specified in the URL.

0
source

Source: https://habr.com/ru/post/1617865/


All Articles