How to integrate facebook login button in my rails 3 app - ruby-on-rails-3

What is the easiest and reliable way to add facebook login button to my rails 3 app?
I Currently have a User model with email and password_hash and password_salt
Are there any good gems that make this easy in rails3?
Are my only options OmniAuth and Devise? I am currently using authenticating from scratch method from railscasts: http://railscasts.com/episodes/250-authentication-from-scratch

OmniAuth is the easiest and fastest choice, in my experience. Devise is great but much more heavyweight if all you're planning to do is Facebook OAuth.

Related

How to implement login via facebook google and twitter?

I want to login via facebook, google and twitter in Yii framework.
I don't know how to do it ?
Please suggest me the best way.
You can go through the developer site for each facebook, twitter and google. and simple create some app to work with as you needed.

omniauth with omniauth-google-oauth2 or google-api-ruby-client?

If a web application just needs to authenticate users with a google account with omniauth, in other words, users can just login with their google account.
What's the best choice to choose between the two gems:
omniauth-google-oauth2 or google-api-ruby-client ?
omniauth-google-oauth2 is your best choice, because "omniauth" gem not dependent on suppliers and perfectly integrates with Devise

Find online users using devise and rails 3

I am using devise as a good way of authentication in my rails 3.2 application and I tried several ways to fetch online users ,I need to know if I can fetch all online users using sessions on my application
Google and stackoverflow are your friends:
There appears to be a gem for this and has been asked a lot.
"Who's Online" using Devise in Rails

Code for login with facebook in rails3?

In my application we are providing user to login with facebook.Can any1 tell me the code for this?
Check this app:
https://github.com/holden/devise-omniauth-example/
Devise 1.2 now comes with facebook login support using omniauth and works with Rails 3.0. Check out https://github.com/plataformatec/devise/wiki/OmniAuth%3a-Overview.

authlogic connect tutorial

I am trying to add the facebook connect to an existing site in rails 3 that uses authlogic.
so that existing users can sign in via their facebook account (I'll find existing account via email id in facebook ) and new users can sign up using facebook too.
I am trying to use authlogic connect
( I found other alternative like omniauth , facebooker2 etc , omniauth plays well with devise but I dont want to move to devise & it seems only authlogic connect plays well with authlogic and rails3 )
But I am unable to find some proper tutorial where I could understand how to use it.
I looked at their project site :
https://github.com/viatropos/authlogic-connect
I used the little help on their site and tried to do a little.
Now when the facebook login button is clicked it goes to facebook page asks for all the permission and then it comes back to a url with code as a paramater. what do I do with the code param ?
Can someone suggest me a proper tutorial (not example) for using the authlogic connect
Thank you
I really gave up on authlogic connect.
Though it seems its the best solution, It integrates so much iwht the authlogic that I am unable to customize it.
I finally got omniauth working with authlogic , though a lot of things were manually done
railcasts simple omniauth authentication helped a lot,