Skip to content

Instantly share code, notes, and snippets.

@StavrosKen
Last active January 3, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StavrosKen/8453427 to your computer and use it in GitHub Desktop.
Save StavrosKen/8453427 to your computer and use it in GitHub Desktop.
Facebook SDK installation
<script>
window.fbAsyncInit = function () {
FB.init({
appId: 'YOUR-APP-ID-HERE',
status: true,
xfbml: true
});
FB.Canvas.setSize({ width: 760, height: 2300 });
};
// Load the SDK asynchronously
(function (d) {
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) { return; }
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment