In my codeigniter
我正在尝试使用的项目Instagram API
用于登录。
This https://github.com/ianckc/CodeIgniter-Instagram-Library是我正在使用的库。
但是当进入登录页面时,却显示错误
{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "您不是该客户端的沙箱用户"}
示例网址是
https://www.instagram.com/oauth/authorize/?client_id=[client ID]&redirect_uri=[your url]&response_type=code
为什么它会这样工作?任何帮助将不胜感激
根据这个错误:
{“code”:403,“error_type”:“OAuthForbiddenException”,
"error_message": "您不是该客户端的沙箱用户"}
首先你需要创建沙箱用户:
Step1:
从这里登录您的帐户“http://instagram.com/developer http://instagram.com/developer”,然后单击管理客户端来创建新客户端,确保客户端状态为沙箱。
Step2:
填写所有必填字段并设置OAuth redirect_uri
字段到“http://localhost http://localhost" 不使用引号。也未选中Disable implicit OAuth
Step 3:
现在您可以在“客户端详细信息”框中看到客户端 ID,现在您只需要为访问 API 生成访问令牌,您可以使用以下 URL:
https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID_HERE]&redirect_uri=http://localhost&response_type=token
You can check the status of Client from here:
参考:http://jelled.com/instagram/access-token http://jelled.com/instagram/access-token
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)