Instagram returns: "redirect URI does not match registered redirect URI" #117

Closed
jewelia opened this Issue Jun 29, 2012 · 8 comments

Comments

Projects
None yet
4 participants
@jewelia

jewelia commented Jun 29, 2012

I registered my Instagram client according to your instructions (using https://api.singly.com/v0/auth/instagram/auth as the Oauth redirect_url), but when I just do a very simple HTTP GET request (for example):

https://api.singly.com/oauth/authorize?client_id=131cb07e5d121ab1fe152&redirect_uri=http://localhost:8000/singly/callback&service=instagram

(I use my client_id, of course, and not the sample ID) This URL redirects me to the Instagram login page. I then successfully login, and the following message appears while I'm still on the Instagram domain (meaning at https://instagram.com/oauth/authorize/?response_type=code&client_id=... -- before the redirect to singly):

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

If I use this url (meaning using my client_id and the same redirect_uri) for any of the other services I have registered (Twitter, Facebook, LinkedIn), it works perfectly and returns me an access code. However, it's only Instragram that is the problem child.

Any thoughts? Thanks!

@smurthas

This comment has been minimized.

Show comment
Hide comment
@smurthas

smurthas Jun 29, 2012

Contributor

Sorry, the /v0 shouldn't be there -- that's a typo in our docs. We'll update it ASAP.

Contributor

smurthas commented Jun 29, 2012

Sorry, the /v0 shouldn't be there -- that's a typo in our docs. We'll update it ASAP.

@jewelia

This comment has been minimized.

Show comment
Hide comment
@jewelia

jewelia Jun 29, 2012

Sweet, thanks for the quick reply. I made the change and looks like it's working now!

jewelia commented Jun 29, 2012

Sweet, thanks for the quick reply. I made the change and looks like it's working now!

@jewelia

This comment has been minimized.

Show comment
Hide comment
@jewelia

jewelia Jun 29, 2012

FYI: Simon, the Foursquare API docs are also incorrect for the same reason.

Foursquare was failing (in that case I was getting a Singly error message back in the form of https://yourapp.com/callback?code=missing_access_token). I thought I was doing something wrong, but as soon as I removed /v0 from the Callback URL it fixed the problem!

jewelia commented Jun 29, 2012

FYI: Simon, the Foursquare API docs are also incorrect for the same reason.

Foursquare was failing (in that case I was getting a Singly error message back in the form of https://yourapp.com/callback?code=missing_access_token). I thought I was doing something wrong, but as soon as I removed /v0 from the Callback URL it fixed the problem!

@smurthas

This comment has been minimized.

Show comment
Hide comment
@smurthas

smurthas Jun 29, 2012

Contributor

Ahh, thanks, we'll look through all of them.

Contributor

smurthas commented Jun 29, 2012

Ahh, thanks, we'll look through all of them.

@kristjan

This comment has been minimized.

Show comment
Hide comment
@kristjan

kristjan Jun 29, 2012

@jewelia You get the awesome developer of the day award. Thanks for the great descriptions and attention to detail :)

@jewelia You get the awesome developer of the day award. Thanks for the great descriptions and attention to detail :)

@ghost ghost assigned kristjan Jun 29, 2012

@jewelia

This comment has been minimized.

Show comment
Hide comment
@jewelia

jewelia Jun 29, 2012

LOL thanks, I accept t-shirts, cash gifts, lottery cards... ;)

jewelia commented Jun 29, 2012

LOL thanks, I accept t-shirts, cash gifts, lottery cards... ;)

@kristjan

This comment has been minimized.

Show comment
Hide comment
@kristjan

kristjan Jun 30, 2012

Fixed the rest and our example images in Singly/hallmonitor@4037cb4 and Singly/hallmonitor@ec13561

Fixed the rest and our example images in Singly/hallmonitor@4037cb4 and Singly/hallmonitor@ec13561

@rk-panchal

This comment has been minimized.

Show comment
Hide comment
@rk-panchal

rk-panchal Nov 30, 2015

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

how it resolve it while instagrame integrated

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

how it resolve it while instagrame integrated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment