title: Rails 3 using Devise: How to allow someone to log in using their Facebook account?
body: <p>I have a Rails 3 application using <a href="http://github.com/plataformatec/devise" rel="noreferrer">Devise</a> for authentication. Now I need to allow someone to log in using their Facebook account. I think this is called Facebook Connect, but I've also heard the term Facebook Graph API, so I'm not sure which one I'm asking for.</p>
  <p>What do I need to do in order to integrate Facebook Connect with Devise?</p>
  <h2>Solution:</h2>
  <p>This question is pretty old now. A year ago, Devise v1.2 introduced <a href="https://github.com/intridea/omniauth" rel="noreferrer">OmniAuth</a> support. Now Devise is at v2.1 (as of this writing) and using OmniAuth is even easier. Here is a great tutorial from the Devise wiki on <a href="https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview" rel="noreferrer">using the <code>omniauth-facebook</code> gem with Devise to allow sign-in using Facebook</a>.</p>
  <p>Also check out this great tutorial on <a href="http://devcenter.heroku.com/articles/facebook" rel="noreferrer">registering your application and working with the Facebook Graph API</a>.</p>