After set up, i went to user to add an account.
I went to my user, clicked edit/instagram account/add account,
then i get this message:
{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
How do i fix this?
Comments
Comment #1
davidknicker commentedis this a browser issue?
Comment #2
quiquedb commentedCheck your application "redirect uri" at your ig developer account, must be something like: http://yourweb/instagram/oauth , as you can see at admin/config/services/drupagram.
cheers.
Comment #3
davidknicker commentedMy redirect and callback links are identical but i am still getting this:
{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
It happens right when i click create account for instagram on my website.
Comment #4
davidknicker commentedshit, nvm i got it.
Comment #5
Jorrit commentedThe difficulty here is that the Drupalgram module calls this URL the "Callback URL", while Instagram calls it the "OAuth redirect_uri". Perhaps the Drupagram module can rename the "Callback URL" field label to "OAuth redirect_uri".
Comment #6
rmontero commentedShould we change this to a documentation request then?
As always thanks for your continued support and interest in this module.
@Jorrit could you try the instructions on the INSTALL.txt and see if they help? Otherwise we can change them to make the installation a bit easier.
Thanks,
Rob Montero
Comment #7
saru1683 commented@davidzk how you got it working? can help me B'Coz I am getting same error response.
Thank you.
Comment #8
davidknicker commentedI can't recall exactly how i worked around this issue (its been 6/7 months). I would get the "Redirect URI does not match registered redirect URI" error in a few different areas. I think an extra character might have been in the uri area causing a miss match.
I did eventually get it to work on this website: www.zachchurchillmusic.com
Its set up in a block in the right column and on its own page @ zachchurchillmusic.com/instagram
I wish i could give you more information but i honestly just cant remember what i did.
Comment #9
davidknicker commentedhttp://drupal.org/node/1417182
Comment #10
juliekj commentedI'm having the same issue as well.... any news on this?
davidzk: is there a solution at the link you provided in #9 ? it's not the same issue...?
Comment #11
davidknicker commentedlooking back, not sure why the links there.
I just recently installed the module on a new D7 site without any issues.
double check the Client ID, Client Secret, Callback URL as registered with instagram?
extra characters got me the first time. a simple space just f%$ks it up.
update:
looks like the link started on the same subject, but i get lost further down the discussion...
Comment #12
vincent_jo commentedHi there ....
same error here!
I have tried everything, double-tripple-checked the Ids (Client ID and secret). De- and re-installed all related moduls and clients ...
The Redirect URI (which is called Callback-URL in the drupagram-module, right?) should look like:
http://www.my-site.com/instagram/oauth , right?
Is there something to edit in the settings for the oauth-module? .. as "error_type": "OAuthException"" is mentioned in the error-message.
Could this be related?:
"The one thing to keep in mind is that all requests to the API must be made over SSL (https:// not http://) "
(from: http://instagram.com/developer/authentication/)
I don´t have SSL access to my site.
Any other ideas to solve this issue?
regards
Vincent
Comment #13
digilu commentedWhen copying and pasting all of the fields, an extra space can be added to the end. Just make sure that you delete that extra space and you should be just fine.
Comment #14
topherson commentedThis is exactly what happened to me when coping the "OAuth redirect_uri" from drupal and pasting into the "OAuth redirect_uri:" field on the Instagram "Edit Client" page.
Despite being very careful to only select the path...there was indeed an extra space at the end of the "saved path" field.
Deleting this extra space and resaving the client config (on Instagram) and going back to my drupal site and linking accounts no works
Thanks digilu
Comment #15
damienmckennaThere are several issues with RTBC patches that work together with the current -dev release so this issue doesn't occur.
Comment #17
wasimhyder09 commentedKeeping the site URI and Redirect URI same, worked for me. Thanks to this comment