Skip to content

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

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

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

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

@jewelia
jewelia commented Jun 29, 2012

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

@jewelia
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

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

@kristjan

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

@kristjan kristjan was assigned Jun 29, 2012
@jewelia
jewelia commented Jun 29, 2012

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

@kristjan

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

@kristjan kristjan closed this Jun 30, 2012
@rk-panchal

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

how it resolve it while instagrame integrated

@kristjan kristjan was unassigned by rk-panchal Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.