确定一个用户是否使用Instagram API跟随另一个用户 [英] Determining if one user follows another using the Instagram API
问题描述
我是一个相当初级的程序员,尝试使用Instagram API.我已完成所有设置,正在构建的应用程序需要一个来查看一个用户是否关注另一个用户.有没有一种方法可以检查这一条语句,而不是获得用户关注者的完整列表?非常感激.谢谢!
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!
推荐答案
您可以使用API检查登录用户与其他任何用户的关系:
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
您可以在响应中检查incomming_status
和outgoing_status
.
you can check the incomming_status
and outgoing_status
in the response.
随机2位用户之间没有API是直接检查关系.
There is no API is check relationship between random 2 users directly.
这篇关于确定一个用户是否使用Instagram API跟随另一个用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!