Instagram Access Token提供无效

时间:2015-11-18 08:49:26

标签: python instagram-api

---------- EDITTED -----------------------

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

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

以下错误apeear:

{"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.

---------- EDITTED -----------------------

我试图通过我的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)

我试图获得一个新的身份验证密钥,但我有同样的错误

2 个答案:

答案 0 :(得分:4)

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

  

2015年11月17日之前创建的应用只需提交   2016年6月之前审核。我们建议您更新产品和   尽早开始提交过程以避免中断   服务。

提交审核

  

如何提交权限审核

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

答案 1 :(得分:0)

似乎Instagram改变了他们的API政策。在2015年12月5日,可以注册新的申请。

相关问题