Module: Sorcery::Controller::Submodules::External::Providers::Facebook
- Defined in:
- lib/sorcery/controller/submodules/external/providers/facebook.rb
Overview
This module adds support for OAuth with facebook.com. When included in the ‘config.providers’ option, it adds a new option, ‘config.facebook’. Via this new option you can configure Facebook specific settings like your app’s key and secret.
config.facebook.key = <key>
config.facebook.secret = <secret>
...
Defined Under Namespace
Modules: FacebookClient
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sorcery/controller/submodules/external/providers/facebook.rb', line 15 def self.included(base) base.module_eval do class << self attr_reader :facebook # access to facebook_client. def merge_facebook_defaults! @defaults.merge!(:@facebook => FacebookClient) end end merge_facebook_defaults! update! end end |