Versión de SDK para Android
- Mutable
- CollectionMapper
- AppCall
- CustomTab
- CustomTabUtils
- DialogFeature
- DialogPresenter
- FacebookDialogBase
- FacebookDialogFragment
- GamingAction
- FacebookWebFallbackDialog
- FragmentWrapper
- InstagramCustomTab
- PlatformServiceClient
- WebDialog
- AnalyticsEvents
- AttributionIdentifiers
- BoltsMeasurementEventListener
- BundleJSONConverter
- CallbackManagerImpl
- FacebookInitProvider
- FacebookRequestErrorClassification
- FacebookSignatureValidator
- FeatureManager
- FetchedAppGateKeepersManager
- FetchedAppSettings
- FetchedAppSettingsManager
- FileLruCache
- ImageDownloader
- ImageRequest
- ImageResponse
- ImageResponseCache
- InstallReferrerUtil
- InternalSettings
- LockOnGetVariable
- Logger
- NativeAppCallAttachmentStore
- NativeProtocol
- ServerProtocol
- SmartLoginOption
- UrlRedirectCache
- Utility
- Validate
- WorkQueue
- MessageDialog
- SendButton
- ShareButton
- ShareButtonBase
- GameRequestDialog
- ShareDialog
- MessageDialogFeature
- VideoUploader
- GameRequestValidation
- CameraEffectFeature
- CameraEffectJSONUtility
- LegacyNativeDialogParameters
- NativeDialogParameters
- ResultProcessor
- ShareConstants
- ShareContentValidation
- ShareDialogFeature
- ShareFeedContent
- ShareInternalUtility
- ShareStoryFeature
- WebDialogParameters
- ShareApi
- ShareBuilder
- Sharer
- Share
- ShareToMessengerParamsBuilder
- Messenger
- MessengerThreadParams
- MessengerUtils
- ShareToMessengerParams
- FacebookAppLinkResolver
- AppLinkData
- AppLinks
- AggregateException
- AppLink
- AppLinkResolver
- AppLinks
- CancellationToken
- CancellationTokenRegistration
- CancellationTokenSource
- Continuation
- ExecutorException
- Task
- TaskCompletionSource
- UnobservedTaskException
- AccessTokenTracker
- AuthenticationTokenTracker
- CustomTabActivity
- CustomTabMainActivity
- FacebookActivity
- FacebookAuthorizationException
- FacebookButtonBase
- FacebookCallback
- FacebookDialog
- FacebookDialogException
- LoginStatusCallback
- WebDialog
- AccessToken
- AccessTokenManager
- AccessTokenSource
- AuthenticationToken
- AuthenticationTokenCache
- AuthenticationTokenClaims
- AuthenticationTokenHeader
- AuthenticationTokenManager
- CallbackManager
- CurrentAccessTokenExpirationBroadcastReceiver
- FacebookBroadcastReceiver
- FacebookContentProvider
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookSdk
- FacebookSdkNotInitializedException
- FacebookServiceException
- GraphRequest
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphResponse
- HttpMethod
- LoggingBehavior
- Profile
- ProfileCache
- ProfileManager
- ProfileTracker
- ProgressNoopOutputStream
- ProgressOutputStream
- RequestProgress
- Common
- DeviceRequestsHelper
- EndToEndDumper
- CodeChallengeMethod
- CustomTabLoginMethodHandler
- CustomTabPrefetchHelper
- DeviceAuthDialog
- DeviceAuthMethodHandler
- GetTokenLoginMethodHandler
- KatanaProxyLoginMethodHandler
- LoginBehavior
- LoginClient
- LoginConfiguration
- LoginFragment
- LoginManager
- LoginMethodHandler
- LoginResult
- NativeAppLoginMethodHandler
- NonceUtil
- WebLoginMethodHandler
- WebViewLoginMethodHandler
- DefaultAudience
- LoginTargetApp
- DeviceLoginManager
- Login
- AppGroupCreationContent
- CameraEffectArguments
- CameraEffectTextures
- GameRequestContent
- ShareCameraEffectContent
- ShareContent
- ShareHashtag
- ShareLinkContent
- ShareMedia
- ShareMediaContent
- ShareMessengerActionButton
- ShareMessengerURLActionButton
- ShareModel
- ShareModelBuilder
- SharePhoto
- SharePhotoContent
- ShareStoryContent
- ShareVideo
- ShareVideoContent
- AccessTokenAppIdPair
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsManager
- FlushResult
- InternalAppEventsLogger
- UserDataStore
- MetadataIndexer
- MetadataRule
- SettingsAPIFields
- AppEventsCAPIManager
- CustomEventField
- AppEventType
- AppEventUserAndAppDataField
- ConversionsAPISection
- ConversionsAPICustomEventField
- ConversionsAPIUserAndAppDataField
- ConversionsAPIEventName
- OtherEventConstants
- AppEventsConversionsAPITransformer
- AppEventsConversionsAPITransformerWebRequests
- CodelessLoggingEventListener
- CodelessManager
- RCTCodelessLoggingEventListener
- ViewIndexer
- Constants
- EventBinding
- ParameterComponent
- PathComponent
- SensitiveUserDataUtils
- UnityReflection
- ViewHierarchy
- EventDeactivationManager
- InAppPurchaseActivityLifecycleTracker
- InAppPurchaseAutoLogger
- InAppPurchaseBillingClientWrapper
- InAppPurchaseEventManager
- InAppPurchaseLoggerManager
- InAppPurchaseManager
- InAppPurchaseSkuDetailsWrapper
- InAppPurchaseUtils
- IntegrityManager
- ActivityLifecycleTracker
- AppEventUtility
- AppEventsLoggerUtility
- AutomaticAnalyticsLogger
- Constants
- FileDownloadTask
- ViewHierarchyConstants
- MTensor
- Model
- ModelManager
- Utils
- OnDeviceProcessingManager
- RemoteServiceWrapper
- RestrictiveDataManager
- SuggestedEventsManager
- ViewOnClickListener
- Core
- GateKeeper
- GateKeeperRuntimeCache
- ExceptionAnalyzer
- InstrumentData
- InstrumentManager
- InstrumentUtility
- ANRDetector
- ANRHandler
- CrashHandler
- AutoHandleExceptions
- CrashShieldHandler
- NoAutoExceptionHandling
- ErrorReportData
- ErrorReportHandler
- ThreadCheckHandler
- Excuse
- ExcusesForDesignViolations
- CertificateUtil
- OidcSecurityUtil
- DeviceLoginButton
- LoginButton
- ProfilePictureView
- ToolTipPopup
- All
Nested Class Summary
| Modifier and Type | Class | Description |
|---|---|---|
public final class | LoginManager.FacebookLoginActivityResultContract | The ActivityResultContract object for login. This contract can be used as the parameter for registerForActivityResult. |
public class | LoginManager.Companion |
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
private LoginBehavior | loginBehavior | |
private DefaultAudience | defaultAudience | |
private String | authType | |
private LoginTargetApp | loginTargetApp | |
private Boolean | isFamilyLogin | |
private Boolean | shouldSkipAccountDeduplication |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
final LoginBehavior | getLoginBehavior() | The login behavior. |
final Unit | setLoginBehavior(LoginBehaviorĀ loginBehavior) | |
final DefaultAudience | getDefaultAudience() | The default audience. |
final Unit | setDefaultAudience(DefaultAudienceĀ defaultAudience) | |
final String | getAuthType() | The authType |
final Unit | setAuthType(StringĀ authType) | |
final LoginTargetApp | getLoginTargetApp() | The login target app. |
final Unit | setLoginTargetApp(LoginTargetAppĀ loginTargetApp) | |
final Boolean | getIsFamilyLogin() | Determines whether we are using the cross Family of Apps login experience. |
final Unit | setIsFamilyLogin(BooleanĀ isFamilyLogin) | |
final Boolean | getShouldSkipAccountDeduplication() | Determines if we should skip deduplicating account during x-FoA login. |
final Unit | setShouldSkipAccountDeduplication(BooleanĀ shouldSkipAccountDeduplication) | |
final Unit | resolveError(ActivityĀ activity, GraphResponseĀ response) | Starts the login process to resolve the error defined in the response. |
final Unit | resolveError(FragmentĀ fragment, GraphResponseĀ response) | Starts the login process to resolve the error defined in the response. |
final Unit | resolveError(FragmentĀ fragment, CallbackManagerĀ callbackManager, GraphResponseĀ response) | Starts the login process to resolve the error defined in the response. |
final Unit | resolveError(FragmentĀ fragment, GraphResponseĀ response) | Starts the login process to resolve the error defined in the response. |
final Unit | resolveError(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, GraphResponseĀ response) | Starts the login process to resolve the error defined in the response. |
final Unit | registerCallback(CallbackManagerĀ callbackManager, FacebookCallback<LoginResult>Ā callback) | Registers a login callback to the given callback manager. |
final Unit | unregisterCallback(CallbackManagerĀ callbackManager) | Unregisters a login callback to the given callback manager. |
Boolean | onActivityResult(IntegerĀ resultCode, IntentĀ data, FacebookCallback<LoginResult>Ā callback) | |
Boolean | onActivityResult(IntegerĀ resultCode, IntentĀ data) | |
final LoginManager | setLoginBehavior(LoginBehaviorĀ loginBehavior) | Setter for the login behavior. |
final LoginManager | setLoginTargetApp(LoginTargetAppĀ targetApp) | Setter for the login target app. |
final LoginManager | setDefaultAudience(DefaultAudienceĀ defaultAudience) | Setter for the default audience. |
final LoginManager | setAuthType(StringĀ authType) | Setter for the authType |
final LoginManager | setMessengerPageId(StringĀ messengerPageId) | Setter for the messengerPageId |
final LoginManager | setResetMessengerState(BooleanĀ resetMessengerState) | Setter for the resetMessengerState. |
final LoginManager | setFamilyLogin(BooleanĀ isFamilyLogin) | Setter for whether we are using cross Family of Apps login |
final LoginManager | setShouldSkipAccountDeduplication(BooleanĀ shouldSkipAccountDeduplication) | Setter for whether we are skipping deduplicating account during x-FoA login. |
Unit | logOut() | Logs out the user. |
final Unit | retrieveLoginStatus(ContextĀ context, LoginStatusCallbackĀ responseCallback) | Retrieves the login status for the user. |
final Unit | retrieveLoginStatus(ContextĀ context, LongĀ toastDurationMs, LoginStatusCallbackĀ responseCallback) | Retrieves the login status for the user. |
final Unit | logInWithReadPermissions(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logInWithReadPermissions(FragmentĀ fragment, CallbackManagerĀ callbackManager, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logInWithReadPermissions(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logInWithReadPermissions(ActivityĀ activity, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logInWithReadPermissions(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logInWithConfiguration(FragmentĀ fragment, LoginConfigurationĀ loginConfig) | Logs the user in with the requested configuration. |
final Unit | loginWithConfiguration(ActivityĀ activity, LoginConfigurationĀ loginConfig) | Logs the user in with the requested configuration. |
final Unit | reauthorizeDataAccess(ActivityĀ activity) | Reauthorize data access |
final Unit | reauthorizeDataAccess(FragmentĀ fragment) | Reauthorize data access |
final Unit | logInWithPublishPermissions(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested publish permissions. |
final Unit | logInWithPublishPermissions(FragmentĀ fragment, CallbackManagerĀ callbackManager, Collection<String>Ā permissions) | Logs the user in with the requested publish permissions. |
final Unit | logInWithPublishPermissions(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested publish permissions. |
final Unit | logInWithPublishPermissions(ActivityĀ activity, Collection<String>Ā permissions) | Logs the user in with the requested publish permissions. |
final Unit | logInWithPublishPermissions(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions) | Logs the user in with the requested read permissions. |
final Unit | logIn(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentĀ fragment, Collection<String>Ā permissions, StringĀ loggerID) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentĀ fragment, Collection<String>Ā permissions, StringĀ loggerID) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentWrapperĀ fragment, Collection<String>Ā permissions) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentWrapperĀ fragment, Collection<String>Ā permissions, StringĀ loggerID) | Logs the user in with the requested permissions. |
final Unit | logIn(ActivityĀ activity, Collection<String>Ā permissions) | Logs the user in with the requested permissions. |
final Unit | logIn(FragmentWrapperĀ fragment, LoginConfigurationĀ loginConfig) | Logs the user in with the requested login configuration. |
final Unit | logIn(ActivityĀ activity, LoginConfigurationĀ loginConfig) | Logs the user in with the requested configuration. |
final Unit | logIn(ActivityĀ activity, Collection<String>Ā permissions, StringĀ loggerID) | Logs the user in with the requested permissions. |
final Unit | logIn(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions, StringĀ loggerID) | Logs the user in with the requested permissions. |
final Unit | logIn(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions) | Logs the user in with the requested permissions. |
final LoginManager.FacebookLoginActivityResultContract | createLogInActivityResultContract(CallbackManagerĀ callbackManager, StringĀ loggerID) | Create the ActivityResultContract object for login. |
final LoginManager.FacebookLoginActivityResultContract | createLogInActivityResultContract(CallbackManagerĀ callbackManager) | Create the ActivityResultContract object for login. |
final LoginManager.FacebookLoginActivityResultContract | createLogInActivityResultContract() | Create the ActivityResultContract object for login. |
Method Detail
setLoginBehavior
final UnitsetLoginBehavior(LoginBehaviorĀ loginBehavior)
setDefaultAudience
final UnitsetDefaultAudience(DefaultAudienceĀ defaultAudience)
setAuthType
final UnitsetAuthType(StringĀ authType)
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)
resolveError
final UnitresolveError(ActivityĀ activity, GraphResponseĀ response)
Starts the login process to resolve the error defined in the response. The registered login callbacks will be called on completion.
Parameters:
activity - The activity which is starting the login process.response - The response that has the error.resolveError
@Deprecated(message = ) final UnitresolveError(FragmentĀ fragment, GraphResponseĀ response)
Starts the login process to resolve the error defined in the response. The registered login callbacks will be called on completion.
This method is deprecated and it's better to use the method with a CallbackManager as the second parameter. The new method with the CallbackManager as a parameter will use AndroidX activity result APIs so you won't need to override onActivityResult method on the fragment.
Parameters:
fragment - The fragment which is starting the login process.response - The response that has the error.resolveError
final UnitresolveError(FragmentĀ fragment, CallbackManagerĀ callbackManager, GraphResponseĀ response)
Starts the login process to resolve the error defined in the response. The registered login callbacks will be called on completion.
Parameters:
fragment - The fragment which is starting the login process.callbackManager - The callback manager which is used to register callbacks.response - The response that has the error.resolveError
final UnitresolveError(FragmentĀ fragment, GraphResponseĀ response)
Starts the login process to resolve the error defined in the response. The registered login callbacks will be called on completion.
Parameters:
fragment - The android.app.Fragment which is starting the login process.response - The response that has the error.resolveError
final UnitresolveError(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, GraphResponseĀ response)
Starts the login process to resolve the error defined in the response. The registered login callbacks will be called on completion.
Parameters:
activityResultRegistryOwner - The activity result register owner.callbackManager - The callback manager from Facebook SDK.response - The response that has the error.registerCallback
final UnitregisterCallback(CallbackManagerĀ callbackManager, FacebookCallback<LoginResult>Ā callback)
Registers a login callback to the given callback manager.
Parameters:
callbackManager - The callback manager that will encapsulate the callback.callback - The login callback that will be called on login completion.unregisterCallback
final UnitunregisterCallback(CallbackManagerĀ callbackManager)
Unregisters a login callback to the given callback manager.
Parameters:
callbackManager - The callback manager that will encapsulate the callback.onActivityResult
@JvmOverloads() BooleanonActivityResult(IntegerĀ resultCode, IntentĀ data, FacebookCallback<LoginResult>Ā callback)
onActivityResult
@JvmOverloads() BooleanonActivityResult(IntegerĀ resultCode, IntentĀ data)
setLoginBehavior
final LoginManagersetLoginBehavior(LoginBehaviorĀ loginBehavior)
Setter for the login behavior.
Parameters:
loginBehavior - The login behavior.setLoginTargetApp
final LoginManagersetLoginTargetApp(LoginTargetAppĀ targetApp)
Setter for the login target app.
Parameters:
targetApp - The login target app.setDefaultAudience
final LoginManagersetDefaultAudience(DefaultAudienceĀ defaultAudience)
Setter for the default audience.
Parameters:
defaultAudience - The default audience.setAuthType
final LoginManagersetAuthType(StringĀ authType)
Setter for the authType
Parameters:
authType - The authTypesetMessengerPageId
final LoginManagersetMessengerPageId(StringĀ messengerPageId)
Setter for the messengerPageId
Parameters:
messengerPageId - The messengerPageIdsetResetMessengerState
final LoginManagersetResetMessengerState(BooleanĀ resetMessengerState)
Setter for the resetMessengerState. For developers of the app only.
Parameters:
resetMessengerState - Whether to enable resetMessengerStatesetFamilyLogin
final LoginManagersetFamilyLogin(BooleanĀ isFamilyLogin)
Setter for whether we are using cross Family of Apps login
Parameters:
isFamilyLogin - Whether we are using cross Family of Apps loginsetShouldSkipAccountDeduplication
final LoginManagersetShouldSkipAccountDeduplication(BooleanĀ shouldSkipAccountDeduplication)
Setter for whether we are skipping deduplicating account during x-FoA login.
Parameters:
shouldSkipAccountDeduplication - Whether we want to opt out account deduplication experience in Family of Apps loginretrieveLoginStatus
final UnitretrieveLoginStatus(ContextĀ context, LoginStatusCallbackĀ responseCallback)
Retrieves the login status for the user. This will return an access token for the app if a user is logged into the Facebook for Android app on the same device and that user had previously logged into the app. If an access token was retrieved then a toast will be shown telling the user that they have been logged in.
Parameters:
context - An Android contextresponseCallback - The callback to be called when the request completesretrieveLoginStatus
final UnitretrieveLoginStatus(ContextĀ context, LongĀ toastDurationMs, LoginStatusCallbackĀ responseCallback)
Retrieves the login status for the user. This will return an access token for the app if a user is logged into the Facebook for Android app on the same device and that user had previously logged into the app. If an access token was retrieved then a toast will be shown telling the user that they have been logged in.
Parameters:
context - An Android contexttoastDurationMs - The duration to show the success toast in millisecondsresponseCallback - The callback to be called when the request completeslogInWithReadPermissions
@Deprecated(message = ) final UnitlogInWithReadPermissions(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
This method is deprecated and it's better to use the method with a CallbackManager as the second parameter. The new method with the CallbackManager as a parameter will use AndroidX activity result APIs so you won't need to override onActivityResult method on the fragment.
Parameters:
fragment - The androidx.fragment.Fragment which is starting the login process.permissions - The requested permissions.logInWithReadPermissions
final UnitlogInWithReadPermissions(FragmentĀ fragment, CallbackManagerĀ callbackManager, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
Parameters:
fragment - The androidx.fragment.Fragment which is starting the login process.callbackManager - The callback manager which is used to register callbacks.permissions - The requested permissions.logInWithReadPermissions
final UnitlogInWithReadPermissions(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
Parameters:
fragment - The android.app.Fragment which is starting the login process.permissions - The requested permissions.logInWithReadPermissions
final UnitlogInWithReadPermissions(ActivityĀ activity, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
Parameters:
activity - The activity which is starting the login process.permissions - The requested permissions.logInWithReadPermissions
final UnitlogInWithReadPermissions(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
Parameters:
activityResultRegistryOwner - The activity result register owner.callbackManager - The callback manager from Facebook SDK.permissions - The requested permissions.logInWithConfiguration
final UnitlogInWithConfiguration(FragmentĀ fragment, LoginConfigurationĀ loginConfig)
Logs the user in with the requested configuration.
Parameters:
fragment - The android.support.v4.app.Fragment which is starting the login process.loginConfig - The login configurationloginWithConfiguration
final UnitloginWithConfiguration(ActivityĀ activity, LoginConfigurationĀ loginConfig)
Logs the user in with the requested configuration.
Parameters:
activity - The activity which is starting the login process.loginConfig - The login configurationreauthorizeDataAccess
final UnitreauthorizeDataAccess(ActivityĀ activity)
Reauthorize data access
Parameters:
activity - The activity which is starting the reauthorization process.reauthorizeDataAccess
final UnitreauthorizeDataAccess(FragmentĀ fragment)
Reauthorize data access
Parameters:
fragment - The android.support.v4.app.Fragment starting the reauthorization process.logInWithPublishPermissions
@Deprecated(message = ) final UnitlogInWithPublishPermissions(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested publish permissions.
This method is deprecated and it's better to use the method with a CallbackManager as the second parameter. The new method with the CallbackManager as a parameter will use AndroidX activity result APIs so you won't need to override onActivityResult method on the fragment.
Parameters:
fragment - The androidx.fragment.Fragment which is starting the login process.permissions - The requested permissions.logInWithPublishPermissions
final UnitlogInWithPublishPermissions(FragmentĀ fragment, CallbackManagerĀ callbackManager, Collection<String>Ā permissions)
Logs the user in with the requested publish permissions.
Parameters:
fragment - The androidx.fragment.Fragment which is starting the login process.callbackManager - The callback manager which is used to register callbacks.permissions - The requested permissions.logInWithPublishPermissions
final UnitlogInWithPublishPermissions(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested publish permissions.
Parameters:
fragment - The android.app.Fragment which is starting the login process.permissions - The requested permissions.logInWithPublishPermissions
final UnitlogInWithPublishPermissions(ActivityĀ activity, Collection<String>Ā permissions)
Logs the user in with the requested publish permissions.
Parameters:
activity - The activity which is starting the login process.permissions - The requested permissions.logInWithPublishPermissions
final UnitlogInWithPublishPermissions(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions)
Logs the user in with the requested read permissions.
Parameters:
activityResultRegistryOwner - The activity result register owner.callbackManager - The callback manager from Facebook SDK.permissions - The requested permissions.logIn
final UnitlogIn(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested permissions.
Parameters:
fragment - The android.support.v4.app.Fragment which is starting the login process.permissions - The requested permissions.logIn
final UnitlogIn(FragmentĀ fragment, Collection<String>Ā permissions, StringĀ loggerID)
Logs the user in with the requested permissions.
Parameters:
fragment - The android.support.v4.app.Fragment which is starting the login process.permissions - The requested permissions.loggerID - Override the default logger ID for the requestlogIn
final UnitlogIn(FragmentĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested permissions.
Parameters:
fragment - The android.app.Fragment which is starting the login process.permissions - The requested permissions.logIn
final UnitlogIn(FragmentĀ fragment, Collection<String>Ā permissions, StringĀ loggerID)
Logs the user in with the requested permissions.
Parameters:
fragment - The android.app.Fragment which is starting the login process.permissions - The requested permissions.loggerID - Override the default logger ID for the requestlogIn
final UnitlogIn(FragmentWrapperĀ fragment, Collection<String>Ā permissions)
Logs the user in with the requested permissions.
Parameters:
fragment - The fragment which is starting the login process.permissions - The requested permissions.logIn
final UnitlogIn(FragmentWrapperĀ fragment, Collection<String>Ā permissions, StringĀ loggerID)
Logs the user in with the requested permissions.
Parameters:
fragment - The fragment which is starting the login process.permissions - The requested permissions.loggerID - Override the default logger ID for the requestlogIn
final UnitlogIn(ActivityĀ activity, Collection<String>Ā permissions)
Logs the user in with the requested permissions.
Parameters:
activity - The activity which is starting the login process.permissions - The requested permissions.logIn
final UnitlogIn(FragmentWrapperĀ fragment, LoginConfigurationĀ loginConfig)
Logs the user in with the requested login configuration.
Parameters:
fragment - The fragment which is starting the login process.loginConfig - The login config of the requestlogIn
final UnitlogIn(ActivityĀ activity, LoginConfigurationĀ loginConfig)
Logs the user in with the requested configuration.
Parameters:
activity - The activity which is starting the login process.loginConfig - The login config of the requestlogIn
final UnitlogIn(ActivityĀ activity, Collection<String>Ā permissions, StringĀ loggerID)
Logs the user in with the requested permissions.
Parameters:
activity - The activity which is starting the login process.permissions - The requested permissions.loggerID - Override the default logger ID for the requestlogIn
final UnitlogIn(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions, StringĀ loggerID)
Logs the user in with the requested permissions.
Parameters:
activityResultRegistryOwner - The activity result register owner.callbackManager - The callback manager from Facebook SDK.permissions - The requested permissions.loggerID - Override the default logger ID for the requestlogIn
final UnitlogIn(ActivityResultRegistryOwnerĀ activityResultRegistryOwner, CallbackManagerĀ callbackManager, Collection<String>Ā permissions)
Logs the user in with the requested permissions.
Parameters:
activityResultRegistryOwner - The activity result register owner.callbackManager - The callback manager from Facebook SDK.permissions - The requested permissions.createLogInActivityResultContract
@JvmOverloads() final LoginManager.FacebookLoginActivityResultContractcreateLogInActivityResultContract(CallbackManagerĀ callbackManager, StringĀ loggerID)
Create the ActivityResultContract object for login. This contract can be used as the parameter for
registerForActivityResult.For example, in an AndroidX activity/fragment:
// onCreate val launcher = registerForActivityResult( loginManager.createLogInActivityResultContract(callbackManager)) {...} // when user click the login button launcher.launch(permissions)In Jetpack Compose, we can use
rememberLauncherForActivityResult( contract = loginManager.createLogInActivityResultContract(callbackManager, null), onResult = {...} )to create the launcher
Parameters:
callbackManager - the callback manager to register login callbacks.loggerID - the logger Id for the login request.createLogInActivityResultContract
@JvmOverloads() final LoginManager.FacebookLoginActivityResultContractcreateLogInActivityResultContract(CallbackManagerĀ callbackManager)
Create the ActivityResultContract object for login. This contract can be used as the parameter for
registerForActivityResult.For example, in an AndroidX activity/fragment:
// onCreate val launcher = registerForActivityResult( loginManager.createLogInActivityResultContract(callbackManager)) {...} // when user click the login button launcher.launch(permissions)In Jetpack Compose, we can use
rememberLauncherForActivityResult( contract = loginManager.createLogInActivityResultContract(callbackManager, null), onResult = {...} )to create the launcher
Parameters:
callbackManager - the callback manager to register login callbacks.createLogInActivityResultContract
@JvmOverloads() final LoginManager.FacebookLoginActivityResultContractcreateLogInActivityResultContract()
Create the ActivityResultContract object for login. This contract can be used as the parameter for
registerForActivityResult.For example, in an AndroidX activity/fragment:
// onCreate val launcher = registerForActivityResult( loginManager.createLogInActivityResultContract(callbackManager)) {...} // when user click the login button launcher.launch(permissions)In Jetpack Compose, we can use
rememberLauncherForActivityResult( contract = loginManager.createLogInActivityResultContract(callbackManager, null), onResult = {...} )to create the launcher