开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜