You are not a sandbox user of this client. Error Codeigniter-Instagram api

As per this error:

{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"}

First of all you need to create Sandbox User:

Step1:

Login your account from here "http://instagram.com/developer" and than click on Manage Clients for creating New Client, make sure status of client is Sandbox.

Step2:

Fill all required fields and set OAuth redirect_uri field to "http://localhost" without using quotes. also unchecked Disable implicit OAuth

Step 3:

Now you can see the client id on Client Detail box, now you just need to generate Access Token for access API, you can use this 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: enter image description here

Reference: http://jelled.com/instagram/access-token


In such error case:

{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"}

You need to add that Instagram user to Sandbox Users:

Step1:

Go https://www.instagram.com/developer/clients/manage/

Press Manage.

Press Sandbox.

Step2:

Type Instagram ID of user you getting that error add and press Save. You will see pending in front of user you added.

Step 3:

Now you need to accept invitation. Login into that Instagram account on the https://www.instagram.com.

Go to https://www.instagram.com/developer/clients/sandbox_invites/

http://joxi.ru/l2ZRDDPFzV9GK2.jpg

Press Accept.

Done! Now should work.