Anant Anant - 1 month ago 26
PHP Question

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

Answer

ok, I am able to achieve what I desired.

The reason for it was the app needed to be submitted for review. Though at first it got rejected, as it requires a video url showing what this app really want to achieve and how it is doing that. So, I created a video corresponding to all work and submitted again, it got approved and finally the code work as expected.

Here is an output of that:

http://webkul.com/instatoken/

If anyone feels to ask anything about it, they can ask it here.