facebook_database.rb 338 B

1234567891011121314
  1. class FacebookDatabase < OmniAuth::Strategies::Facebook
  2. option :name, 'facebook'
  3. def initialize(app, *args, &block)
  4. # database lookup
  5. # puts 'FacebookDatabase -> initialize'
  6. config = Setting.get('auth_facebook_credentials') || {}
  7. args[0] = config['app_id']
  8. args[1] = config['app_secret']
  9. super
  10. end
  11. end