Created
December 12, 2012 11:59
-
-
Save arush/4267237 to your computer and use it in GitHub Desktop.
Facebook getLoginStatus for testing
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
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