class G5FacebookApiClient::AccessToken

Constants

RESOURCE

Public Instance Methods

fetch() click to toggle source
# File lib/g5_facebook_api_client/access_token.rb, line 4
def fetch
  get(access_token_uri)
end

Private Instance Methods

access_token_uri() click to toggle source
# File lib/g5_facebook_api_client/access_token.rb, line 10
def access_token_uri
  "#{G5FacebookApiClient::ENDPOINT}/#{RESOURCE}" \
  "?client_id=#{@client_id}&client_secret=#{@client_secret}" \
  "&grant_type=client_credentials"
end