omniauth-facebook-rails
This gem speeds up omniauth-facebook setup in Rails apps.
Getting started
omniauth-facebook-rails works with Rails 3.2 onwards. You can add it to your Gemfile with:
gem 'omniauth-facebook-rails'
Add the required environment variables:
export FACEBOOK_APP_KEY=123456
export FACEBOOK_APP_SECRET=abcdef
It is heavily recommended for you to change railsties order in
config/application.rb
:
config.railties_order = [OmniauthFacebookRails::Engine, :main_app, :all]
Otherwise, your User
model won't load the Engine's User
model.
Features/Problems
- It is in Portuguese.
- You only are granted access to the person's email.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This project is released under the MIT License