public class HTMLGDXFacebook extends java.lang.Object implements GDXFacebook
| Constructor and Description |
|---|
HTMLGDXFacebook(GDXFacebookConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
gameRequest(GDXFacebookGameRequest request,
GDXFacebookCallback<GameRequestResult> callback)
Make a Game Request which uses the underlaying Facebook SDK.
|
GDXFacebookAccessToken |
getAccessToken() |
void |
graph(Request request,
GDXFacebookCallback<JsonResult> callback)
Make a new Graph API Request.
|
boolean |
isLoaded() |
boolean |
isSignedIn() |
void |
newGraphRequest(Request request,
GDXFacebookCallback<JsonResult> callback)
Make a new Graph API Request.
|
void |
showGameRequest(GDXFacebookGameRequest request,
GDXFacebookCallback<GameRequestResult> callback)
Make a Game Request which uses the underlaying Facebook SDK.
|
void |
signIn(SignInMode mode,
com.badlogic.gdx.utils.Array<java.lang.String> permissions,
GDXFacebookCallback<SignInResult> callback)
Opens the sign in dialog of the underlying Facebook SDK in the following cases:
- User has not authorized app
- User has authorized app but needs to grant permissions
- An exisitng access_token is no longer valid.
|
void |
signOut()
Convenient method for
GDXFacebook.signOut(boolean). |
void |
signOut(boolean keepSessionData)
Signs the user out.
|
public HTMLGDXFacebook(GDXFacebookConfig config)
public void signIn(SignInMode mode, com.badlogic.gdx.utils.Array<java.lang.String> permissions, GDXFacebookCallback<SignInResult> callback)
GDXFacebookSilently signs the user in when: - A existing token is loaded and still valid. - The underlying Facebook SDK can handle the sign in silently.
signIn in interface GDXFacebookmode - signIn modepermissions - required permissionscallback - callback to handle resultpublic void showGameRequest(GDXFacebookGameRequest request, GDXFacebookCallback<GameRequestResult> callback)
GDXFacebookshowGameRequest in interface GDXFacebookrequest - the requestcallback - callback to handle resultpublic void gameRequest(GDXFacebookGameRequest request, GDXFacebookCallback<GameRequestResult> callback)
GDXFacebookgameRequest in interface GDXFacebookrequest - the requestcallback - callback to handle resultpublic void newGraphRequest(Request request, GDXFacebookCallback<JsonResult> callback)
GDXFacebooknewGraphRequest in interface GDXFacebookrequest - the requestcallback - the callbackpublic void graph(Request request, GDXFacebookCallback<JsonResult> callback)
GDXFacebookgraph in interface GDXFacebookrequest - the requestcallback - the callbackpublic void signOut(boolean keepSessionData)
GDXFacebooksignOut in interface GDXFacebookkeepSessionData - whether to keep the user session data for later or not.public void signOut()
GDXFacebookGDXFacebook.signOut(boolean).signOut in interface GDXFacebookpublic boolean isSignedIn()
isSignedIn in interface GDXFacebookpublic GDXFacebookAccessToken getAccessToken()
getAccessToken in interface GDXFacebookpublic boolean isLoaded()
isLoaded in interface GDXFacebook