Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails devise - Facebook + Twitter +

I'm thinking to use devise gem for a new Rails app I'm working on. I'm a bit confused about a thing. The app will allow the user to connect to FB, Twitter and possibly other social network (Foursquare, etc..). I know that with devise + omniauth-facebook you can allow the user to register to your site by FB user (or same applies to twitter). I just wonder: if you allow the user to login by FB user and then you also want to connect the same user to his/her twitter account, does devise support this?

like image 330
CLod Avatar asked Oct 23 '12 19:10

CLod


2 Answers

You can check this tutorial, this explains multiple authentication with Facebook and Twitter + normal user registration process with Devise: http://www.orhancanceylan.com/rails-twitter-and-facebook-authentications-with-omniauth-and-devise/

like image 147
CanCeylan Avatar answered Sep 22 '22 01:09

CanCeylan


You can use this sample source code which integrates with all the popular social networks ie Devise + Twitter + Facebook + Linkedin + Google + Github

Disclaimer: I wrote that application. In case you are facing any issues. Feel free to ping me on stackoverflow or open an issue on github.

like image 25
Mohit Jain Avatar answered Sep 24 '22 01:09

Mohit Jain