Module: FacebookDialog::ScriptHelper
- Defined in:
- lib/facebook_dialog/script_helper.rb
Instance Method Summary collapse
Instance Method Details
#fb_init_js(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/facebook_dialog/script_helper.rb', line 8 def fb_init_js( = {}) = { appId: FacebookDialog.api_key, status: true, cookies: true } "FB.init(#{.merge().to_json.html_safe});".html_safe end |
#fb_js ⇒ Object
3 4 5 6 |
# File 'lib/facebook_dialog/script_helper.rb', line 3 def fb_js content_tag(:div, "", id: "fb-root") + javascript_include_tag('//connect.facebook.net/en_US/all.js') end |