Omnicontacts open in popup

Hello,

I am using omni_contacts gem in my application.
I am using -
Rails 4.0.1
Ruby 2

How can I open Facebook in a popup & after login redirect to the app
closing the popup with results ?
Is there any way to do it ?

Thanks,
Avi