Skip to content

Instantly share code, notes, and snippets.

@jessehattabaugh
Created May 18, 2009 18:02
Show Gist options
  • Save jessehattabaugh/113645 to your computer and use it in GitHub Desktop.
Save jessehattabaugh/113645 to your computer and use it in GitHub Desktop.
Facebook Connect get_status() demonstration
if(FB.Connect.get_status() == FB.ConnectState.userNotLoggedIn){
alert('user is not logged in');
} else {
alert('user is logged in');
}
if(FB.Connect.get_status() == FB.ConnectState.appNotAuthorized){
alert('app is not authorized');
} else {
alert('app is authorized');
}
if(FB.Connect.get_status() == FB.ConnectState.connected){
alert('connected');
} else {
alert('not connected');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment