------------已编辑------------------------
当我尝试向 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/