Anant Anant - 2 months ago 54
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:

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

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


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:

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