Skip to content

Instantly share code, notes, and snippets.

@msenkpiel
Created October 2, 2012 09:39
Show Gist options
  • Save msenkpiel/3817872 to your computer and use it in GitHub Desktop.
Save msenkpiel/3817872 to your computer and use it in GitHub Desktop.
FB.getLoginStatus(function(response) {
if (response.status === "connected") {
// use the response.authResponse
}
else if (response.status === "not_authorized") {
FB.login(function(response) {
...
}, { scope: "email, read_stream" });
}
else {
// user not logged in to facebook
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment