问题
I'm a fairly beginner programmer trying my hand with the Instagram API. I have everything set up, and the app I'm building requires one to see if one user follows another or not. Is there a way to check this one statement rather than getting a whole list of a user's followers? Much appreciated. Thanks!
回答1:
You can check if the logged-in user's relationship with any other user with API:
https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN
you can check the incomming_status
and outgoing_status
in the response.
There is no API is check relationship between random 2 users directly.
来源:https://stackoverflow.com/questions/31300586/determining-if-one-user-follows-another-using-the-instagram-api