Versión de SDK para Android


public final class DeviceLoginManager
extends LoginManager
This class manages device login and permissions for Facebook.
Nested Class Summary
Modifier and TypeClassDescription
public classDeviceLoginManager.Companion
Constructor Summary
ConstructorDescription
DeviceLoginManager()
Method Summary
Modifier and TypeMethodDescription
final UrigetDeviceRedirectUri() Uri to redirect the user to after they complete the device login flow on the external device.
final UnitsetDeviceRedirectUri(UriĀ deviceRedirectUri) Uri to redirect the user to after they complete the device login flow on the external device.
final StringgetDeviceAuthTargetUserId() Target user id for the device request, if any.
final UnitsetDeviceAuthTargetUserId(StringĀ deviceAuthTargetUserId) Target user id for the device request, if any.
final LoginBehaviorgetLoginBehavior() The login behavior.
final UnitsetLoginBehavior(LoginBehaviorĀ loginBehavior)
final DefaultAudiencegetDefaultAudience() The default audience.
final UnitsetDefaultAudience(DefaultAudienceĀ defaultAudience)
final StringgetAuthType() The authType
final UnitsetAuthType(StringĀ authType)
final LoginTargetAppgetLoginTargetApp() The login target app.
final UnitsetLoginTargetApp(LoginTargetAppĀ loginTargetApp)
final BooleangetIsFamilyLogin() Determines whether we are using the cross Family of Apps login experience.
final UnitsetIsFamilyLogin(BooleanĀ isFamilyLogin)
final BooleangetShouldSkipAccountDeduplication() Determines if we should skip deduplicating account during x-FoA login.
final UnitsetShouldSkipAccountDeduplication(BooleanĀ shouldSkipAccountDeduplication)
Methods inherited from classĀ com.facebook.login.DeviceLoginManager
createLogInActivityResultContract, createLogInActivityResultContract, createLogInActivityResultContract, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logIn, logInWithConfiguration, logInWithPublishPermissions, logInWithPublishPermissions, logInWithPublishPermissions, logInWithPublishPermissions, logInWithPublishPermissions, logInWithReadPermissions, logInWithReadPermissions, logInWithReadPermissions, logInWithReadPermissions, logInWithReadPermissions, logOut, loginWithConfiguration, onActivityResult, onActivityResult, reauthorizeDataAccess, reauthorizeDataAccess, registerCallback, resolveError, resolveError, resolveError, resolveError, resolveError, retrieveLoginStatus, 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
Constructor Detail

DeviceLoginManager

DeviceLoginManager()
Method Detail

getDeviceRedirectUri

 final UrigetDeviceRedirectUri()
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.

setDeviceRedirectUri

 final UnitsetDeviceRedirectUri(UriĀ deviceRedirectUri)
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.

getDeviceAuthTargetUserId

 final StringgetDeviceAuthTargetUserId()
Target user id for the device request, if any.

setDeviceAuthTargetUserId

 final UnitsetDeviceAuthTargetUserId(StringĀ deviceAuthTargetUserId)
Target user id for the device request, if any.

getLoginBehavior

 final LoginBehaviorgetLoginBehavior()
The login behavior.

setLoginBehavior

 final UnitsetLoginBehavior(LoginBehaviorĀ loginBehavior)

getDefaultAudience

 final DefaultAudiencegetDefaultAudience()
The default audience.

setDefaultAudience

 final UnitsetDefaultAudience(DefaultAudienceĀ defaultAudience)

getAuthType

 final StringgetAuthType()
The authType

setAuthType

 final UnitsetAuthType(StringĀ authType)

getLoginTargetApp

 final LoginTargetAppgetLoginTargetApp()
The login target app.

setLoginTargetApp

 final UnitsetLoginTargetApp(LoginTargetAppĀ loginTargetApp)

getIsFamilyLogin

 final BooleangetIsFamilyLogin()
Determines whether we are using the cross Family of Apps login experience. True if using cross Family of Apps login

setIsFamilyLogin

 final UnitsetIsFamilyLogin(BooleanĀ isFamilyLogin)

getShouldSkipAccountDeduplication

 final BooleangetShouldSkipAccountDeduplication()
Determines if we should skip deduplicating account during x-FoA login. True if Account deduplication is opted out in Family of Apps login

setShouldSkipAccountDeduplication

 final UnitsetShouldSkipAccountDeduplication(BooleanĀ shouldSkipAccountDeduplication)