-
public class DeviceLoginManager extends LoginManager
This class manages device login and permissions for Facebook.
-
-
Field Summary
Fields Modifier and Type Field Description private Uri
deviceRedirectUri
private String
deviceAuthTargetUserId
private static volatile DeviceLoginManager
instance
-
Method Summary
Modifier and Type Method Description Uri
getDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete thedevice login flow on the external device. void
setDeviceRedirectUri(Uri uri)
Set uri to redirect the user to after they complete the device login flow on the externaldevice. String
getDeviceAuthTargetUserId()
Get the target user id for the device request, if any. void
setDeviceAuthTargetUserId(@Nullable() String targetUserId)
Optional. static DeviceLoginManager
getInstance()
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
Uri getDeviceRedirectUri()
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() String getDeviceAuthTargetUserId()
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 DeviceLoginManager getInstance()
Getter for the login manager.
-
-
-
-