您不是此客户端的沙箱用户.错误Codeigniter-Instagram api

Aru*_*run 8 php login codeigniter-2 instagram-api

在我的codeigniter项目中,我试图Instagram API用于登录.

是我正在使用的库.

但是当进入登录页面时,它显示错误

{"code":403,"error_type":"OAuthForbiddenException","error_message":"您不是此客户端的沙箱用户"}

样本网址是

https://www.instagram.com/oauth/authorize/?client_id=[client ID]&redirect_uri=[your url]&response_type=code
Run Code Online (Sandbox Code Playgroud)

它为什么这样工作?任何帮助都可以得到赞赏

dev*_*pro 11

根据这个错误:

{"code":403,"error_type":"OAuthForbiddenException","error_message":"您不是此客户端的沙箱用户"}

首先,您需要创建Sandbox用户:

步骤1:

从" http://instagram.com/developer " 登录您的帐户,然后单击"管理客户端"以创建新客户端,确保客户端的状态为Sandbox.

第2步:

填写所有必填字段并将字段设置OAuth redirect_uri为" http:// localhost "而不使用引号.也没有检查Disable implicit OAuth

第3步:

现在您可以在"客户端详细信息"框中看到客户端ID,现在您只需要为访问API生成访问令牌,您可以使用以下URL:

https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID_HERE]&redirect_uri=http://localhost&response_type=token
Run Code Online (Sandbox Code Playgroud)

您可以从此处查看客户端的状态: 在此输入图像描述

参考:http://jelled.com/instagram/access-token