Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Facebook for Auth in Ruby

Hey folks, I'm experimenting with Facebook's APIs to get auth working. Any recommendations for the "best" way to do this with ruby? I'm looking at this right now (uses devise and heroku - just like the course) . http://blog.yangtheman.com/2012/02/09/facebook-connect-with-rails-omniauth-devise/

3 Answers

There is an excellent video at railscasts.com - video #360 - that covers Facebook authentication with Rails.

Use omniauth with omniauth facebook. This makes it easier if you decide to add twitter, google auth etc down the road.

Thanks folks - I got it working, with a few hiccups. I ended up with Omniauth. I documented my approach here (still haven't tried pushing it up to heroku). http://socialgraphpaper.blogspot.ca/2012/12/getting-started-with-rails-and-facebook.html