开发者

Adding a URL parameter to an OmniAuth Stratery

When开发者_StackOverflow社区 connecting using the Facebook strategy, I want to use display=popup in the Facebook URL.

I saw that the initialiize() function has an options argument, where can I call it outside the Omniauth gem?

Thanks.


Here's how I have mine setup:

Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, 'YOUR_APP_ID', 'YOUR_SECRET_KEY', :display => 'popup'
end
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜