Package 

Class DeviceLoginManager

    • 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

        createLogInActivityResultContract, getAuthType, getDefaultAudience, getLoginBehavior, getLoginTargetApp, getShouldSkipAccountDeduplication, isFamilyLogin, 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.
      • setDeviceAuthTargetUserId

         void setDeviceAuthTargetUserId(@Nullable() String targetUserId)

        Optional. Set to target the device request to a specific user.

        Parameters:
        targetUserId - The user id to target.