Sha256: e6b1b7f67b058eaf10fab9a44dc872d9a5f114bff08104f9f76481ccf47a2f0d
Contents?: true
Size: 658 Bytes
Versions: 52
Compression:
Stored size: 658 Bytes
Contents
<% if Rails.application.secrets.facebook_app_id.present? %> <script> window.fbAsyncInit = function() { FB.init({ appId : '<%= Rails.application.secrets.facebook_app_id %>', xfbml : true, version : 'v2.3' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div id="fb-root"></div> <% else %> <script> window.fb_api_disabled = true </script> <% end %>
Version data entries
52 entries across 28 versions & 1 rubygems