public class FacebookConnect extends Object
Modifier and Type | Method and Description |
---|---|
void |
askPublishPermissions(LoginCallback lc)
Asks for publish permissions, this call might suspend the application which might
trigger repeated invocations of stop()/start().
|
static FacebookConnect |
getInstance() |
String |
getToken()
The facebook token that can be used to access facebook functionality
|
boolean |
hasPublishPermissions()
Returns true if the current session already has publish permissions
|
boolean |
isFacebookSDKSupported()
Indicates whether the native platform supports native facebook login
|
boolean |
isLoggedIn()
Indicates if the user is currently logged in
|
void |
login()
Logs into facebook, notice that this call might suspend the application which might
trigger repeated invocations of stop()/start() etc.
|
void |
logout()
Logs out the current user from facebook
|
void |
setCallback(LoginCallback lc)
Sets the login callback that will receive event callback notification from
the API
|
public static FacebookConnect getInstance()
public void setCallback(LoginCallback lc)
lc
- the login callback or null to remove the existing login callbackpublic boolean isFacebookSDKSupported()
public void login()
public boolean isLoggedIn()
public String getToken()
public void logout()
public void askPublishPermissions(LoginCallback lc)
public boolean hasPublishPermissions()