python - 提供的 Instagram 访问 token 无效

标签 python instagram-api

------------已编辑------------------------

当我尝试向 API 发送下一个请求时:

https://api.instagram.com/v1/tags/nofilter/media/recent?access_token=MY_TOKEN

出现以下错误:

{"meta":{"error_type":"OAuthPermissionsException","code":400,"error_message":"This request requires scope=public_content, but this access token is not authorized with this scope. The user must re-authorize your application with scope=public_content to be granted this permissions."}}

当我尝试通过 Instagram 的安全屏幕 (https://instagram.com/developer/clients/MY_CLIENT/edit/) 更改应用程序的范围时,会出现此消息:

We will start accepting Permissions Review submissions after Dec 3, 2016.

------------已编辑------------------------

我正在尝试通过我的 python 应用程序从 Instagram API 检索数据。 当我向 Instagram API 发送 HTTP 请求时,它会返回下一个错误:

{"meta":{"error_type":"OAuthAccessTokenException","code":400,"error_message":"The access_token provided is invalid."}}

附上我的代码:

def parseData(self,hashtag):
        url = "https://api.instagram.com/v1/tags/" + hashtag + "/media/recent?client_id=" + self.CLIENT_ID
        content = urllib2.urlopen(url).read()
        data = json.load(content)

我尝试获取新的身份验证 key ,但出现相同的错误

最佳答案

您的应用是在 11 月 17 日之后创建的,因此需要在上线前进行审核。

Apps created before Nov 17, 2015 will only be required to submit for review by June 2016. We recommend that you update your product and start the submission process sooner than later to avoid interuptions of service.

用于评论提交

How to Submit for Permissions Review

Go to Manage Clients and select the app you'd like to submit for Permissions Review
Click the Permissions tab
Click the Start Submission button
Describe the purpose of your application and how you intend to use each permission

关于python - 提供的 Instagram 访问 token 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33775403/

相关文章:

Python - beautifulsoup - 如何处理丢失的结束标签

facebook - 如何使用新的 Graph API 访问任何用户的 Instagram 提要?

javascript - 调用 Instagram 用户 API 时发生错误。刚刚死在 GET 方法中

python - Bokeh DataRange1d 慢慢移出屏幕

Instagram 标签搜索权限

python - Instagram API POST 端点的新要求

Instagram API/媒体/搜索最大计数参数?

python - Asyncio imap 获取邮件 python3

python - 遍历 Json 结构以获得多个输出,我得到一个,为什么?

python - 查找元组列表中具有相同第一项和第三项的元组的计数