Module: EasyAuth::Models::Identities::Oauth2::Facebook::ClassMethods

Defined in:
lib/easy_auth/models/identities/oauth2/facebook.rb

Instance Method Summary collapse

Instance Method Details

#account_attributes_mapObject



12
13
14
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 12

def 
  { :username => 'username', :email => 'email', :first_name => 'first_name', :last_name => 'last_name' }
end

#account_attributes_urlObject



24
25
26
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 24

def 
  'https://graph.facebook.com/me'
end

#authorize_urlObject



16
17
18
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 16

def authorize_url
  '/dialog/oauth'
end

#oauth2_scopeObject



20
21
22
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 20

def oauth2_scope
  'email'
end

#retrieve_uid(account_attributes) ⇒ Object



36
37
38
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 36

def retrieve_uid()
  ['id']
end

#site_urlObject



32
33
34
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 32

def site_url
  'https://www.facebook.com'
end

#token_options(callback_url) ⇒ Object



40
41
42
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 40

def token_options(callback_url)
  super.merge(:parse => :query)
end

#token_urlObject



28
29
30
# File 'lib/easy_auth/models/identities/oauth2/facebook.rb', line 28

def token_url
  'https://graph.facebook.com/oauth/access_token'
end