Android SDK Version

public class DeviceLoginManager
extends LoginManager
This class manages device login and permissions for Facebook.
Constructor Summary
Constructor and Description
DeviceLoginManager() 
Method Summary
Modifier and TypeMethod and Description
protected LoginClient.RequestcreateLoginRequest(java.util.Collection<java.lang.String> permissions) 
java.lang.StringgetDeviceAuthTargetUserId()
Get the target user id for the device request, if any.
UrigetDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete the device login flow on the external device.
static DeviceLoginManagergetInstance()
Getter for the login manager.
voidsetDeviceAuthTargetUserId(java.lang.String targetUserId)
Optional.
voidsetDeviceRedirectUri(Uri uri)
Set uri to redirect the user to after they complete the device login flow on the external device.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

DeviceLoginManager

public DeviceLoginManager()
Method Detail

getInstance

public static DeviceLoginManager getInstance()
Getter for the login manager.
Returns:
The login manager.

setDeviceRedirectUri

public void setDeviceRedirectUri(Uri uri)
Set uri to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
Parameters:
uri - The URI to set.

getDeviceRedirectUri

public Uri getDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
Returns:
The current device redirect uri set.

setDeviceAuthTargetUserId

public void setDeviceAuthTargetUserId(java.lang.String targetUserId)
Optional. Set to target the device request to a specific user.
Parameters:
targetUserId - The user id to target.

getDeviceAuthTargetUserId

public java.lang.String getDeviceAuthTargetUserId()
Get the target user id for the device request, if any.
Returns:
The target user id or null if not set.

createLoginRequest

protected LoginClient.Request createLoginRequest(java.util.Collection<java.lang.String> permissions)
Overrides: