Class: FacebookDialog::Oauth

Inherits:
Dialog
  • Object
show all
Defined in:
lib/facebook_dialog/oauth.rb

Constant Summary

Constants inherited from Dialog

Dialog::HTML_ONLY_KEYS

Instance Method Summary collapse

Methods inherited from Dialog

base_uri, #query, #serializable_hash, #to_h, #url

Constructor Details

#initialize(options = {}) ⇒ Oauth

Returns a new instance of Oauth.



5
6
7
8
# File 'lib/facebook_dialog/oauth.rb', line 5

def initialize(options= {})
  super
  @options[:client_id] ||= @options.delete(:app_id)
end

Instance Method Details

#scopeObject



10
11
12
# File 'lib/facebook_dialog/oauth.rb', line 10

def scope
  @options[:scope]
end