Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest Instagram API的突然出现;范围“;尝试授权用户并获取令牌时出现问题-OAuth_Rest_Api_Oauth_Instagram_Instagram Api - Fatal编程技术网

Rest Instagram API的突然出现;范围“;尝试授权用户并获取令牌时出现问题-OAuth

Rest Instagram API的突然出现;范围“;尝试授权用户并获取令牌时出现问题-OAuth,rest,api,oauth,instagram,instagram-api,Rest,Api,Oauth,Instagram,Instagram Api,在尝试通过Instagram API创建令牌时,我似乎在scope周围遇到了一个错误。直到大约一周前,这一切都很顺利。如果我删除了scope,它就会工作,但是如果我这样做了,我就不能访问Hashtag搜索,所以我需要scope 我不断得到以下错误: {"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"} 这是请求URL: https://ap

在尝试通过Instagram API创建令牌时,我似乎在
scope
周围遇到了一个错误。直到大约一周前,这一切都很顺利。如果我删除了
scope
,它就会工作,但是如果我这样做了,我就不能访问Hashtag搜索,所以我需要
scope

我不断得到以下错误:

{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}
这是请求URL:

https://api.instagram.com/oauth/authorize/?client_id=***CLIENTID***&approval_prompt=force&scope=public_content&response_type=code&redirect_uri=***REDIRECT URL***
我的应用程序对公共内容具有权限,如下所示:


有什么想法吗

删除“公共内容”。仅使用“基本”。

再次检查客户端ID。客户端ID良好。也许
public\u内容
总体上是不受欢迎的。@DigitalMC你是怎么做到的?您已使用哪个选项提交审批?instagram不允许我提交客户审批所需的选项选择。我想我们只是删除了公共内容。似乎我们使用的是旧的API,但它不受支持。