Method: FbGraph2::Auth#initialize
- Defined in:
- lib/fb_graph2/auth.rb
#initialize(client_id, client_secret, options = {}) ⇒ Auth
Returns a new instance of Auth.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fb_graph2/auth.rb', line 11 def initialize(client_id, client_secret, = {}) super .merge( identifier: client_id, secret: client_secret, host: URI.parse(FbGraph2.root_url).host, authorization_endpoint: File.join('/', FbGraph2.api_version, '/oauth/authorize'), token_endpoint: File.join('/', FbGraph2.api_version, '/oauth/access_token'), client_code_endpoint: File.join('/', FbGraph2.api_version, '/oauth/client_code') ) end |