Sha256: 5995cf8808de53755633f0ef01a5705c05d84cc973437154e11366f52623b9ab

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

#fb-root
:javascript
  window.fbAsyncInit = function() {
    FB.init({appId: '#{app_id}', status: true, cookie: true, xfbml: true});
    fbInitHook();
    FB.Canvas.setSize();
  };

  function fbInitHook() {}

  function sizeChangeCallback() {
    FB.Canvas.setSize();
  }

  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nanoc-fuel-0.0.6 lib/nanoc-fuel/helpers/templates/facebook/fb_init.haml
nanoc-fuel-0.0.5 lib/nanoc-fuel/helpers/templates/facebook/fb_init.haml
nanoc_fuel-0.0.4 lib/nanoc_fuel/helpers/templates/facebook/fb_init.haml