I’m using the omniauth gem with rails and it works great with loging in users, but everytime it takes you to the fb login page then redirects you back. I was wondering if there is a way to do what most pages do and show the fb login in a popup and then reload the parent div once that is complete. Any ideas?
Thanks!
Sure, you can easily.
In your view:
In your application.js:
And then in your callback view:
This’ll pop up your Facebook auth in a centered 600×400 popup, then when the user returns from authentication, the view will close the popup and refresh the parent page. It degrades gracefully if a user ctrl-clicks the link, or doesn’t have Javascript enabled, too.