Skip to content

Instantly share code, notes, and snippets.

@arush
Created December 12, 2012 11: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 arush/4267237 to your computer and use it in GitHub Desktop.
Save arush/4267237 to your computer and use it in GitHub Desktop.
Facebook getLoginStatus for testing
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
alert("yes am connected");
} else if (response.status === 'not_authorized') {
alert("logged into facebook but not authorized your app");
} else {
alert("not logged into facebook");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment