Determining if one user follows another using the Instagram API

吃可爱长大的小学妹 提交于 2020-06-26 07:29:10

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!