Created
May 15, 2012 15:34
-
-
Save datamosh/2702696 to your computer and use it in GitHub Desktop.
Facebook SDK jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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