-
public class DeviceLoginManager extends LoginManagerThis class manages device login and permissions for Facebook.
-
-
Field Summary
Fields Modifier and Type Field Description private UrideviceRedirectUriprivate StringdeviceAuthTargetUserIdprivate static volatile DeviceLoginManagerinstance
-
Method Summary
Modifier and Type Method Description 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
computeLoginResult, getAuthType, getDefaultAudience, getExtraDataFromIntent, getInstance, getLoginBehavior, getLoginTargetApp, getShouldSkipAccountDeduplication, isFamilyLogin, isPublishPermission, logIn, logInWithConfiguration, logInWithPublishPermissions, logInWithReadPermissions, logOut, loginWithConfiguration, onActivityResult, 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.
-
-
-
-