Omniauth - Display facebook connect as popup

前端 未结 4 429
忘掉有多难
忘掉有多难 2020-12-31 08:44

I am using Omniauth and forcing /auth/facebook to display in a popup (with JS). [Instead of a new window - which is much less user friendly]

The problem is: Omniauth

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 09:28

    If you're using this with Devise, simply edit your development.rb (and production.rb) to the following;

    config.omniauth :facebook, FACEBOOK_API, FACEBOOK_SECRET, :display => 'popup'
    

    Make sure you restart your rails server upon editing these files.

提交回复
热议问题