Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating instagram access token generator

I wanted to create a simple Instagram access token generator that can be used by any user. Something like this:

http://instagram.pixelunion.net/

Now I am able to create a simple access token generator like that using some cURL in php and this

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

Though the issue is, this access token generator works for the user whose app credentials are used in php and who are included as sandbox user to this client, for all other users it is showing this.

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

Can anyone say what should I do for a generic access token generator

Screenshot of my app: enter image description here

like image 852
Anant Avatar asked Oct 26 '16 13:10

Anant


1 Answers

Looks like you are not a sandbox user, thats the reason it is failing, use the account used to create developer account to login and that should work.

The example website you have posted is reviewed and live, so any user can login. You are in sandbox mode.

like image 85
krisrak Avatar answered Sep 29 '22 05:09

krisrak