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

Version Path
virgo-0.3.17 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.17 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.16 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.16 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.15 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.15 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.14 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.14 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.13 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.13 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.12 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.11 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.11 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.10 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.10 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.9 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.9 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.8 spec/dummy/app/views/virgo/common/_fb_api.html.erb
virgo-0.3.8 app/views/virgo/common/_fb_api.html.erb
virgo-0.3.7 app/views/virgo/common/_fb_api.html.erb