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

davidknicker’s picture

is this a browser issue?

quiquedb’s picture

Check 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.

davidknicker’s picture

My 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.

davidknicker’s picture

shit, nvm i got it.

Jorrit’s picture

The 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".

rmontero’s picture

Component: API Integration / Library » Documentation
Assigned: Unassigned » frichman

Should 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

saru1683’s picture

Component: Documentation » Code
Assigned: frichman » Unassigned

@davidzk how you got it working? can help me B'Coz I am getting same error response.

Thank you.

davidknicker’s picture

I 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.

davidknicker’s picture

juliekj’s picture

I'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...?

davidknicker’s picture

looking 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...

vincent_jo’s picture

Hi 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

digilu’s picture

When 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.

topherson’s picture

This 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

damienmckenna’s picture

Issue summary: View changes
Status: Active » Fixed

There are several issues with RTBC patches that work together with the current -dev release so this issue doesn't occur.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

wasimhyder09’s picture

Keeping the site URI and Redirect URI same, worked for me. Thanks to this comment