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?
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/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With