Android SDK Version


public class DeviceLoginManager
extends LoginManager
This class manages device login and permissions for Facebook.
Field Summary
Modifier and TypeFieldDescription
private UrideviceRedirectUri
private StringdeviceAuthTargetUserId
private static volatile DeviceLoginManagerinstance
Method Summary
Modifier and TypeMethodDescription
UrigetDeviceRedirectUri() Get the previously set uri that will be used to redirect the user to after they complete thedevice login flow on the external device.
voidsetDeviceRedirectUri(Uri uri) Set uri to redirect the user to after they complete the device login flow on the externaldevice.
StringgetDeviceAuthTargetUserId() Get the target user id for the device request, if any.
voidsetDeviceAuthTargetUserId(@Nullable() String targetUserId) Optional.
static DeviceLoginManagergetInstance() Getter for the login manager.
Methods inherited from class com.facebook.login.LoginManager
getAuthType, getDefaultAudience, getInstance, getLoginBehavior, getLoginTargetApp, getShouldSkipAccountDeduplication, isFamilyLogin, logIn, logInWithConfiguration, logInWithPublishPermissions, logInWithReadPermissions, logOut, loginWithConfiguration, reauthorizeDataAccess, registerCallback, resolveError, retrieveLoginStatus, setAuthType, setDefaultAudience, setFamilyLogin, setLoginBehavior, setLoginTargetApp, setMessengerPageId, setResetMessengerState, setShouldSkipAccountDeduplication, unregisterCallback
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getDeviceRedirectUri

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

setDeviceRedirectUri

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

getDeviceAuthTargetUserId

@Nullable() StringgetDeviceAuthTargetUserId()
Get the target user id for the device request, if any.

setDeviceAuthTargetUserId

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

getInstance

 static DeviceLoginManagergetInstance()
Getter for the login manager.