Module: OpenAuth2::Provider::Facebook
- Defined in:
- lib/open_auth2/provider/facebook.rb
Constant Summary collapse
- Options =
{ :authorize_url => 'https://graph.facebook.com', :code_url => 'https://www.facebook.com', :refresh_token_grant_name => 'fb_exchange_token', :refresh_token_name => 'fb_exchange_token', :authorize_path => '/dialog/oauth', :token_path => 'oauth/access_token', :endpoint => 'https://graph.facebook.com' }
Class Method Summary collapse
Class Method Details
.parse(config, response_body) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/open_auth2/provider/facebook.rb', line 14 def self.parse(config, response_body) access_token = response_body.gsub('access_token=', '') config.access_token = access_token config.refresh_token = access_token config.token_arrived_at = Time.now config.token_expires_at = "60 days?" end |