Class: OAuth2::Strategy::FbExchangeToken
- Inherits:
-
Base
- Object
- Base
- OAuth2::Strategy::FbExchangeToken
- Defined in:
- lib/oauth2/strategy/fb_exchange_token.rb
Instance Method Summary collapse
Instance Method Details
#authorize_url ⇒ Object
6 7 8 |
# File 'lib/oauth2/strategy/fb_exchange_token.rb', line 6 def raise NotImplementedError, 'The authorization endpoint is not used in this strategy' end |
#get_token(access_token, params = {}, opts = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/oauth2/strategy/fb_exchange_token.rb', line 10 def get_token(access_token, params = {}, opts = {}) params = params.merge 'grant_type' => 'fb_exchange_token', 'fb_exchange_token' => access_token, 'client_id' => @client.id, 'client_secret' => @client.secret @client.get_token params, opts end |