Skip to content

Instantly share code, notes, and snippets.

@arush arush/gist:4267237
Created Dec 12, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.