Skip to content

Instantly share code, notes, and snippets.

@masterkrang
Created May 20, 2016 03:29
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 masterkrang/08f8734152aae1c7281c6df1896e48e8 to your computer and use it in GitHub Desktop.
Save masterkrang/08f8734152aae1c7281c6df1896e48e8 to your computer and use it in GitHub Desktop.
<!-- Facebook -->
<!-- [START facebookconfig] -->
<script src="//connect.facebook.net/en_US/sdk.js"></script>
<script>
FB.init({
/**********************************************************************
* TODO(Developer): Change the value below with your Facebook app ID. *
**********************************************************************/
appId : '<YOUR_FACEBOOK_APP_ID>',
status : true,
xfbml : true,
version : 'v2.6'
});
// [START_EXCLUDE silent]
// Observe the change in Facebook login status
// [START facebookauthlistener]
FB.Event.subscribe('auth.authResponseChange', checkLoginState);
// [END facebookauthlistener]
// [END_EXCLUDE]
</script>
<!-- [END facebookconfig] -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment