Facebook Application Setting: Site URL Without Trailing slash
Is it possible in a Facebook application to set the Site URL to a value without a trailing slash? Facebook appears to be doing ev开发者_开发问答erything in it's power to ensure Site URL has a trailing slash.
I'm asking because I'm using OmniAuth in a Rails 3 application always strips trailing slashes from the redirect_uri parameter. Thus giving me a "Invalid redirect_uri: Given URL is not allowed by the Application configuration." error.
I handled this in my app by providing the following in my app/initializers/omniauth.rb
OmniAuth.config.full_host = "http://myhost.com" # <- without trailing slash here
Dedpending on your production setup, your mileage may vary
精彩评论