-
Notifications
You must be signed in to change notification settings - Fork 85
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
"Redirect URI doesn't match original redirect URI" error #23
Comments
Have the same problem. Any solutions? |
@ozgun I found solution. gem 'omniauth-instagram', github: 'ropiku/omniauth-instagram' |
Hi Alex, Thanks for your suggestion. My workaround was to create an initializer as below: OmniAuth::Strategies::Instagram.class_eval do
def query_string
''
end
end |
Hi all, |
@AlxGolubev you're a legend. Thank you for sharing that. |
Hello All,
" Thanks in Advance |
Hi,
I've set up an Instagram app/client and Valid redirect URIs for my instagram app is like the following:
I've started to get Redirect URI doesn't match original redirect URI error.
Here is the backtrace:
After digging around, I've noticed that if I remove query string from
redirect_uri
which is?code=XXXXX&state=33333
, it works like a charm. However, according to Instagram API Documentation(http://instagram.com/developer/authentication/) it is possible to use query parameters.In order to remove query string from
redirect_uri
, I had to add the following method toomniauth-instagram-1.0.1/lib/omniauth/strategies/instagram.rb
file:But, I'm not sure if this is the best solution. Is this a bug or is there a problem with my settings? This gem used to work before.
Thanks.
-Ozgun.
The text was updated successfully, but these errors were encountered: