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
&引用;无效范围字段:公共“内容”;php中instagram api中显示错误_Php_Api_Instagram_Instagram Api - Fatal编程技术网

&引用;无效范围字段:公共“内容”;php中instagram api中显示错误

&引用;无效范围字段:公共“内容”;php中instagram api中显示错误,php,api,instagram,instagram-api,Php,Api,Instagram,Instagram Api,我使用php使用instagram api,我想关注我朋友的所有用户/朋友,因此 首先,为了授权,我尝试了以下代码 https://api.instagram.com/v1/users/xxxxxxx(clientid)/follows?access_token=xxxxxx.xxxxxx.xxxxxxxxxxxxxxx 但我有以下错误 code 400 error_type "OAuthPermissionsException" error_message "This reque

我使用php使用instagram api,我想关注我朋友的所有用户/朋友,因此 首先,为了授权,我尝试了以下代码

https://api.instagram.com/v1/users/xxxxxxx(clientid)/follows?access_token=xxxxxx.xxxxxx.xxxxxxxxxxxxxxx
但我有以下错误

code    400
error_type  "OAuthPermissionsException"
error_message   "This request requires scope=follower_list, but this access token is not authorized with this scope. The user must re-authorize your application with scope=follower_list to be granted this permissions."
然后我尝试了以下代码

https://www.instagram.com/oauth/authorize/?client_id=xxxxxxxxxxx&redirect_uri=http://mywebsite.com/&response_type=token&scope=follower_list
然后我得到以下错误

error_type  "OAuthException"
code    400
error_message   "Invalid scope field(s): follower_list"

我怎样才能得到那个名单?提前感谢。

Instagram文档:

OAuth 2.0规范允许您指定从用户请求的访问范围。默认情况下,所有已批准的应用程序都具有基本访问权限,但如果您计划请求扩展访问权限,如阅读公共内容、喜欢、评论或管理友谊,则需要在授权请求中指定这些范围。请注意,要使用这些扩展权限,您必须首先提交应用程序以供审阅。以下是我们目前支持的范围:


基本-阅读用户的个人资料信息和媒体

Uhm…您知道Facebook正在关闭旧的Instagram API,对吧@米索鲁德:这意味着目前这是不可能的,对吧?Instagrams旧API不提供对用户信息的访问,因为他们现在使用的是Instagram Graph API。也许这个答案会对你有所帮助:我只使用Instagram的基本访问权限,尽管我遇到了同样的错误。有什么帮助吗?是的,我在我的xamarin应用程序中只使用了基本作用域,但仍然得到相同的异常@Deilusia