Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 495 Bytes

File metadata and controls

14 lines (11 loc) · 495 Bytes

#.isLoggedIn()

Check the user's authorization status. false if the user has not logged into Facebook, or hasn't authorized your app; true otherwise. Most often, this will be in the logic that determines whether to show a login control.

##Example

var facebook = plugin.FacebookAgent.getInstance();
if (facebook.isLoggedIn()) {
    // Get data from Facebook to personalize the player's experience
} else {
    // Prompt the user to log in, or offer a "guest" experience
}