Module: FacebookDialog
- Defined in:
- lib/facebook_dialog.rb,
lib/facebook_dialog/feed.rb,
lib/facebook_dialog/oauth.rb,
lib/facebook_dialog/dialog.rb,
lib/facebook_dialog/railtie.rb,
lib/facebook_dialog/version.rb,
lib/facebook_dialog/omni_auth.rb,
lib/facebook_dialog/validators.rb,
lib/facebook_dialog/script_helper.rb,
lib/facebook_dialog/omni_auth_helper.rb,
lib/facebook_dialog/validators/display.rb,
lib/facebook_dialog/option_serialization.rb
Defined Under Namespace
Modules: OmniAuth, OmniAuthHelper, ScriptHelper, Validators
Classes: Dialog, Feed, InvalidDisplay, Oauth, OptionSerialization, Railtie, ResourceNameNotDefined
Constant Summary
collapse
- VERSION =
"0.0.8"
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
15
16
17
|
# File 'lib/facebook_dialog.rb', line 15
def self.api_key
configatron.facebook_dialog.api_key
end
|
.api_key=(api_key) ⇒ Object
19
20
21
|
# File 'lib/facebook_dialog.rb', line 19
def self.api_key=(api_key)
configatron.facebook_dialog.api_key = api_key
end
|
.display_modes ⇒ Object
set of available display modes from facebook if you specify wap, you must supply an access_token
25
26
27
28
29
30
31
32
33
|
# File 'lib/facebook_dialog.rb', line 25
def self.display_modes
[
"page",
"popup",
"iframe",
"touch",
"wap"
]
end
|
.omniauth_enabled? ⇒ Boolean
35
36
37
|
# File 'lib/facebook_dialog.rb', line 35
def self.omniauth_enabled?
defined?(::OmniAuth) && defined?(::OmniAuth::Strategies::Facebook)
end
|