简体   繁体   English

Instagram API未经授权的令牌,虽然它是一个实时令牌?

[英]Instagram API Unauthorized token although it is a live token?

I am building an app with Instagram's API where I can search photos by tags. 我正在用Instagram的API构建一个应用程序,我可以通过标签搜索照片。

Unfortunately I am getting this error although I do have the live token (not the sandbox one): 不幸的是我收到此错误,虽然我有实时令牌(而不是沙箱):

400: This request requires scope=public_content, but this access token is not authorized with this scope. 400:此请求需要scope = public_content,但此访问令牌未获得此范围的授权。 The user must re-authorize your application with scope=public_content to be granted this permissions. 用户必须使用scope = public_content重新授权您的应用程序才能授予此权限。

you probably have you app in live mode but with just basic permission. 您可能在实时模式下使用应用程序,但只有basic权限。

basic permission is only good for getting your own photos via API. basic权限仅适用于通过API获取自己的照片。

To access other user's content and search you need to login with scope public_content and also get that approved by Instagram for public_content permission (which is not very easy btw, try it) 要访问其他用户的内容和搜索,您需要使用范围public_content登录,并获得Instagram批准的public_content权限(这不是很容易btw,请尝试)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM