Sha256: ff6cbe27a0e2191ab1bada444f863f101232bd9f40e7ae7ba50b248de242e070

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

<% fb = SharingTags.config.current_context[:facebook] %>

<% if fb && app_id = fb.attributes[:app_id]  %>
try
  window.fbAsyncInit = ->
    window.FB.init(
      appId: '<%= app_id %>',
      status : false,
      # or v2.0, v2.1, v2.0
      version: 'v2.3'
    )

  @SharingTags.FacebookShare.init()
catch error
  console?.error("SharingTags.FacebookShare.init error: #{error}")

<% end  %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sharing_tags-0.0.18 app/assets/javascripts/sharing_tags/init.js.coffee.erb
sharing_tags-0.0.17 app/assets/javascripts/sharing_tags/init.js.coffee.erb
sharing_tags-0.0.16 app/assets/javascripts/sharing_tags/init.js.coffee.erb
sharing_tags-0.0.15 app/assets/javascripts/sharing_tags/init.js.coffee.erb
sharing_tags-0.0.14 app/assets/javascripts/sharing_tags/init.js.coffee.erb