Android SDK Version
- 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
All Implemented Interfaces:
com.facebook.FacebookDialog
, com.facebook.share.Sharer
public final class MessageDialog extends ShareDialog implements Sharer
Provides functionality to send content via the Facebook Message Dialog
SUPPORTED SHARE TYPES - ShareLinkContent - ShareCameraEffectContent
UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) - SharePhotoContent - ShareVideoContent - Any other types that are not one of the four supported types listed above
Constructor Summary
Constructor | Description |
---|---|
MessageDialog(Activity activity) | Constructs a MessageDialog. |
MessageDialog(Fragment fragment) | Constructs a MessageDialog. |
MessageDialog(Fragment fragment) | Constructs a MessageDialog. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
boolean | getShouldFailOnDataError() | |
void | setShouldFailOnDataError(boolean shouldFailOnDataError) | |
static void | show(Activity activity, ShareContent shareContent) | Helper to show the provided com.facebook.share.model.ShareContent using the providedActivity. |
static void | show(Fragment fragment, ShareContent shareContent) | Helper to show the provided com.facebook.share.model.ShareContent using the providedFragment. |
static void | show(Fragment fragment, ShareContent shareContent) | Helper to show the provided com.facebook.share.model.ShareContent using the providedFragment. |
static boolean | canShow(Class<out ShareContent<out Object, out Object>> contentType) | Indicates whether it is possible to show the dialog for of the specified type. |
Methods inherited from class com.facebook.share.widget.ShareDialog
canShow, getShouldFailOnDataError, setShouldFailOnDataError, show
Methods inherited from class com.facebook.internal.FacebookDialogBase
getCallbackManager$module, getRequestCode, registerCallback, setCallbackManager, setCallbackManager$module, setRequestCode
Methods inherited from class com.facebook.FacebookDialog
canShow, createActivityResultContractForShowingDialog
Methods inherited from class com.facebook.share.Sharer
getShouldFailOnDataError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
MessageDialog
MessageDialog(Activity activity)
Constructs a MessageDialog.
Parameters:
activity
- Activity to use to send the provided content.MessageDialog
MessageDialog(Fragment fragment)
Constructs a MessageDialog.
Parameters:
fragment
- androidx.fragment.app.Fragment to use to send the provided content.MessageDialog
MessageDialog(Fragment fragment)
Constructs a MessageDialog.
Parameters:
fragment
- android.app.Fragment to use to send the provided content.Method Detail
getShouldFailOnDataError
boolean getShouldFailOnDataError()
setShouldFailOnDataError
void setShouldFailOnDataError(boolean shouldFailOnDataError)
show
static void show(Activity activity, ShareContent shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the providedActivity. No callback will be invoked.
Parameters:
activity
- Activity to use to send the provided contentshareContent
- Content to sendshow
static void show(Fragment fragment, ShareContent shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the providedFragment. No callback will be invoked.
Parameters:
fragment
- androidx.fragment.app.shareContent
- Content to sendshow
static void show(Fragment fragment, ShareContent shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the providedFragment. No callback will be invoked.
Parameters:
fragment
- android.app.shareContent
- Content to sendcanShow
static boolean canShow(Class<out ShareContent<out Object, out Object>> contentType)
Indicates whether it is possible to show the dialog for of the specified type.
Parameters:
contentType
- Class of the intended com.facebook.share.model.ShareContent to send.