Easy to mount omniauth-facebook to Rails
Add these lines to your application's Gemfile:
gem "omniauth"
gem "omniauth-facebook"
gem "auto-facebook"
gem "omniauth"
gem "omniauth-facebook"
gem "auto-facebook", "0.1.rails4"
And then execute:
$ bundle
1. rails g auto_facebook:user
2. rake db:migrate
3. rails g auto_facebook:install
4. touch tmp/restart.txt
Edit config/config.yml
# If you use SettingsLogic
add:
facebook_app_id: 'APP_ID'
facebook_secret: 'APP_SECRET'
<%= link_to("Facebook Login", Setting.domain + user_omniauth_authorize_path(:facebook), :class => "btn btn-facebook") %>
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)