Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get access token on Instagram #2

Open
alamboley opened this issue May 18, 2017 · 2 comments
Open

Can't get access token on Instagram #2

alamboley opened this issue May 18, 2017 · 2 comments

Comments

@alamboley
Copy link

alamboley commented May 18, 2017

Hey,

Many thanks for those nice examples!

When I received the code and call getAccessToken(), I got:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: https://api.instagram.com/oauth/access_token

Any ideas?

@agentphantom
Copy link
Member

I have an idea, please add the following code and tell me what outputs in the console:

accessTokenLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);

private function errorHandler(event:flash.events.IOErrorEvent):void
{
    trace(event.currentTarget.data);
}

@alamboley
Copy link
Author

alamboley commented May 18, 2017

Hmm indeed, I got:
{"error_type": "OAuthException", "code": 400, "error_message": "Redirect URI doesn't match original redirect URI"}

The original REDIRECT_URI contains ?id=myId which is dynamic. So it can't exactly be the same with the dev portals. Instagram doesn't support it?

The REDIRECT_URI never change during the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants