Skip to content

Instantly share code, notes, and snippets.

@datamosh
Created May 15, 2012 15:34
Show Gist options
  • Save datamosh/2702696 to your computer and use it in GitHub Desktop.
Save datamosh/2702696 to your computer and use it in GitHub Desktop.
Facebook SDK jQuery
$(function() {
window.fbAsyncInit = function() {
FB.init({
appId: {APPID},
status: true,
cookie: true,
xfbml: true
})
FB.api('/me', function(response) {
// Load APP
})
};
$.getScript(document.location.protocol + '//connect.facebook.net/en_US/all.js')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment