Skip to content

Instantly share code, notes, and snippets.

@bartvandendriessche
Created October 5, 2010 10:20
Show Gist options
  • Save bartvandendriessche/611329 to your computer and use it in GitHub Desktop.
Save bartvandendriessche/611329 to your computer and use it in GitHub Desktop.
<body>
<div id="fb-root">
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
window.fbAsyncInit = function() {
FB.init({
appId : 'put your key here', // eventhough this variable is called appId, you need to put your api_key here !
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
}
</script>
</div>
<!--Your actual content goes here-->
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment