Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Created April 29, 2010 21:47
Show Gist options
  • Save vincentchu/384311 to your computer and use it in GitHub Desktop.
Save vincentchu/384311 to your computer and use it in GitHub Desktop.
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
apiKey : 'APIKEY',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = 'http://static.ak.fbcdn.net/connect/en_US/core.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment