The helper methods to help with the Facebook integrations. These are defined in Facebook.java
Retrieve the current session's expiration time (in milliseconds since Unix epoch), or 0 if the session doesn't expire or doesn't exist.
Parameters
None
Return Value
long - Session expiration time
Retrieve the OAuth 2.0 access token for API access. Returns null if no session exists.
Parameters
None
Return Value
String - Access token
Retrieve the app ID used to initialize the 'Facebook' object
Parameters
None
Return Value
String - App ID
Whether this 'Facebook' object has an non-expired session token
Parameters
None
Return Value
boolean - true if valid session, else false.
Set the current session's expiration time (in milliseconds since Unix epoch).
Parameters
time - timestamp in milliseconds
Return Value
None
Set the current session's duration (in seconds since Unix epoch), do nothing if null or "0".
Parameters
expiresIn - duration in seconds
Return Value
None
Set the OAuth 2.0 access token for API access.
Parameters
token - Access token
Return Value
None
Set the app id for this 'Facebook' object. This should be used carefully as this results in conflict between the app id and the current access token associated with the 'Facebook' object.
Parameters
appId - App id
Return Value
None