Get the current user's login status as a Waitable object.
The status returned is one of three values:
FB.Connect.get_status().waitUntilReady(function(status) {
switch(status) {
case FB.ConnectState.connected:
// ... do stuff ...
break;
case FB.ConnectState.appNotAuthorized:
case FB.ConnectState.userNotLoggedIn:
// ... show facebook login button ...
break;
}
});