public class FacebookLogin
extends java.lang.Object
Constructor and Description |
---|
FacebookLogin(java.lang.String clientId)
Creates a FacebookLogin object to authenticate users with
the given client id of a Facebook application.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSessionToken()
Returns the Session Token from authentication, or null
if authentication failed.
|
boolean |
isLoggedOn()
Returns whether the user logged on successfully.
|
void |
setScope(java.lang.String scope)
Sets the scope of a Facebook app's access.
|
boolean |
show(java.awt.Dialog parent)
Displays the Facebook login dialog, and waits for the user to close
the window or login.
|
public FacebookLogin(java.lang.String clientId)
clientId
- the client id of the Facebook App to authenticate withpublic boolean isLoggedOn()
public java.lang.String getSessionToken()
public void setScope(java.lang.String scope)
scope
- The scope of the app's to request.public boolean show(java.awt.Dialog parent)
parent
- The parent dialog, or null for none