This is a tutorial for developers use Omniauth opensource to login facebook with Ruby on Rails 4.0.0