I am trying to use this railscast episode to provide authentication via twitter http://railscasts.com/episodes/235-omniauth-part-1
I'm wondering whether it is possible to use omni auth to login with facebook as well?
Also, I wanted to use the HTML OpenID selector but the demo doesn't have facebook button and their FAQ suggests they don't have support for facebook, however, SO Authenticate page does show facebook as one of the buttons. The openid selector that SO uses is custom?
just add to you omniauth.rb credentials for facebook
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, 'CONSUMER_KEY', 'CONSUMER_SECRET'
end
In you session or authentication action(where you deal with twitter login) add extra logic for facebook.