Created
May 18, 2009 18:02
-
-
Save jessehattabaugh/113645 to your computer and use it in GitHub Desktop.
Facebook Connect get_status() demonstration
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
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