在我的 codeigniter
项目中,我尝试使用 Instagram API
进行登录。
This 是我正在使用的库。
但是进入登录页面时,显示错误
{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"}
示例网址是
https://www.instagram.com/oauth/authorize/?client_id=[client ID]&redirect_uri=[your url]&response_type=code
为什么会这样?任何帮助都将不胜感激
最佳答案
根据这个错误:
{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"}
首先您需要创建沙盒用户:
第一步:
从此处“ http://instagram.com/developer ”登录您的帐户,然后单击“管理客户”创建新客户,确保客户状态为“沙盒”。
第二步:
填写所有必填字段并将 OAuth redirect_uri
字段设置为“ http://localhost ”(不使用引号)。也未选中 Disable implicit OAuth
第 3 步:
现在您可以在客户端详细信息框中看到客户端 ID,现在您只需要为访问 API 生成访问 token ,您可以使用此 URL:
https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID_HERE]&redirect_uri=http://localhost&response_type=token
关于php - 您不是此客户端的沙盒用户。错误代码点火器-Instagram api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39632333/