Skip to content
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

Facebook Invalid URI #257

Closed
mluton opened this issue Apr 6, 2011 · 2 comments
Closed

Facebook Invalid URI #257

mluton opened this issue Apr 6, 2011 · 2 comments

Comments

@mluton
Copy link

mluton commented Apr 6, 2011

Facebook really wants Site URL to end in a slash. Since omniauth is stripping the trailing slash from redirect_uri Facebook keeps returning a "Invalid redirect_uri: Given URL is not allowed by the Application configuration."

I was able to configure my Facebook application to have a Site URL without a trailing slash before but it seems like they've tightened up their controls in the last couple of months. Is there anyway to have omniauth not strip the trailing slash from redirect_uri?

@azolotov
Copy link

I think that one thing you can do is to set
OmniAuth.config.full_host = YOUR_URL
in your config/initializers/omniauth.rb without the trailing slash, if you always redirect to the same URL after authentication.

@mluton
Copy link
Author

mluton commented Apr 11, 2011

Ah. Very cool. I think the gem we have installed is a bit behind the current source code but it's nice to know about this option. Thanks!

@mluton mluton closed this as completed Apr 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants