首页 文章

Instagram API权限下降

提问于
浏览
1

我有Instagram API的访问令牌,但当我尝试使用此URL访问标记的 endpoints 时:https://api.instagram.com/v1/tags/kuwait/media/recent?access_token=my-access-token *******

表明:

{“meta”:{“error_type”:“OAuthPermissionsException”,“code”:400,“error_message”:“此请求需要scope = public_content,但此访问令牌未获得此范围的授权 . 用户必须重新授权您的应用程序使用scope = public_content授予此权限 . “}}

我该如何解决?

我没有构建一个完整的应用程序,只是想在我的项目中添加一些功能 .

1 回答

  • 3

    您的错误是您希望获得public_content,但您的应用无权获取public_content .

    因此,解决您的问题的方法是使用scope = public_content作为错误描述重新授权您的应用程序 .

    https://www.instagram.com/oauth/authorize/?client_id=CLIENT_ID&redirect_uri=REDIRECT_URL&response_type=code&scope=basic public_content follower_list评论关系喜欢

    所以只需按照我的建议添加scope = public_content

相关问题