简体   繁体   English

Instagram拒绝API请求

[英]Instagram denying API requests

I'm having a strange issue. 我有一个奇怪的问题。 I currently have API approval from Instagram for the following: 我目前已获得Instagram的API批准,可用于以下方面:

basic public_content comments 基本的public_content注释

I'm using Laravel and Vinkla's Instagram package which is a wrapper for Elogram . 我使用Laravel和Vinkla的Instagram的包,它是一个包装Elogram

Having had my application approved by Instagram, it went into live mode. 我的申请被Instagram批准后,进入实时模式。 Now for every request I get the following message: 现在,对于每个请求,我都会收到以下消息:

OAuthPermissionsException in AbstractAdapter.php line 69:
This client has not been approved to access this resource.

This indicates that Instagram are blocking the request on the grounds that I don't have the necessary scopes. 这表明Instagram由于我没有必要的范围而阻止了该请求。 This all worked fine in Sandbox and my credentials haven't changed. 所有这些在Sandbox中都正常工作,我的凭据也没有更改。

Any advice? 有什么建议吗?

You have to add the user to the Sandbox users in the Instagram Developer site. 您必须将用户添加到Instagram Developer网站中的Sandbox用户中。 Then the user has to accept the invite in his/her Instagram account. 然后,用户必须在他/她的Instagram帐户中接受邀请。

https://www.instagram.com/developer/ https://www.instagram.com/developer/

Sorted the issue myself. 我自己整理问题。 It was an access token issue. 这是一个访问令牌问题。

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

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