我有一个网络应用程序,允许用户通过他们的instagram帐户登录。我已经在Instagram上注册了我的应用。
当用户单击登录按钮时,我将他引导到instagram页面进行登录:
https://instagram.com/oauth/authorize/?scope=basic+relationships&client_id={MyClientId}&redirect_uri={My call back aspx page}&response_type=token在获得访问令牌后,我尝试通过向此链接发送get请求来获取用户的关注者:
https://api.instagram.com/v1/users/201199350/follows?access_token={The access token i've got from the previous step}对于我的帐户(这是应用程序注册的帐户),它工作得很好。
但当我试图从其他账户获取“关注”时,问题就出现了。我收到'Bad request 400‘错误。
我该如何解决这个问题?
谢谢你!!
发布于 2015-02-22 17:01:57
这是一个悬而未决的问题,因为error 400意味着用户not allowed或not found (被垃圾邮件/僵尸系统删除)。此外,如果身份验证用户不是私有用户的followers,则无法获取该用户的follower。
对于来自第一个链接的身份验证用户,您可以使用https://api.instagram.com/v1/users/self/follows?access_token={The access token i've got from the previous step}链接。
https://stackoverflow.com/questions/28647440
复制相似问题