Class: Facebook::AccountKit::TokenExchanger

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook/account_kit/token_exchanger.rb

Instance Method Summary collapse

Constructor Details

#initialize(authorization_code) ⇒ TokenExchanger

Returns a new instance of TokenExchanger.



6
7
8
# File 'lib/facebook/account_kit/token_exchanger.rb', line 6

def initialize(authorization_code)
  @authorization_code = authorization_code
end

Instance Method Details

#fetch_access_tokenObject



10
11
12
13
# File 'lib/facebook/account_kit/token_exchanger.rb', line 10

def fetch_access_token
  result = HTTP.get compose_url
  result['access_token']
end