【问题标题】:Instagram API Bad requestInstagram API 错误请求
【发布时间】:2026-01-26 18:30:02
【问题描述】:

我有一个网络应用程序,允许用户通过他们的 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}

对于我的帐户(即应用程序注册的帐户)来说,它运行良好。

但是当我尝试从其他帐户获取“关注”时,就会出现问题。 我收到“错误请求 400”错误。

我该如何解决这个问题?

谢谢!!

【问题讨论】:

    标签: asp.net instagram instagram-api


    【解决方案1】:

    这是未解决的问题,因为 error 400 表示用户 not allowednot found(已被垃圾邮件/机器人系统删除)。如果身份验证用户不是他的follower,您也无法获得私人用户的followers

    对于来自第一个链接的身份验证用户,您可以使用https://api.instagram.com/v1/users/self/follows?access_token={The access token i've got from the previous step} 链接。

    【讨论】: