Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Omniauth - Display facebook connect as popup

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 loads the FB url with

display=page

Instead of what I want:

display=popup

Anyone knows how I can change the params Omniauth uses for facebook ?

Thanks

like image 984
Boris Avatar asked Dec 19 '10 15:12

Boris


1 Answers

At where you set your Facebook ID and secret key, add one more extra option as:

:display => "popup"
like image 62
siong1987 Avatar answered Oct 21 '22 06:10

siong1987