Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created January 7, 2011 19:56
Show Gist options
  • Save DavidQL/770011 to your computer and use it in GitHub Desktop.
Save DavidQL/770011 to your computer and use it in GitHub Desktop.
// Load in FB javascript SDK
$('body').append('<div id="fb-root"></div>');
window.fbAsyncInit = function() {
FB.init({appId: '146516048706850', status: true, cookie: true, xfbml: true});
};
(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);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment