FB.Connect.get_status

Description

Get the current user's login status as a Waitable object.

The status returned is one of three values:

  • 1 = FB.ConnectState.connected
  • 2 = FB.ConnectState.userNotLoggedIn
  • 3 = FB.ConnectState.appNotAuthorized

Example

 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;
   }
 });

Signature

Returns

Waitable
value of type FB.ConnectState