Methods
canShow
Checks if the Messenger dialog can be shown with the provided content.The content to be shared. Can be
ShareLinkContent, SharePhotoContent, or ShareVideoContent.boolean
Returns
true if the Messenger dialog can be shown, false otherwise.Example
show
Shows the Messenger share dialog with the specified content.The content to be shared. Can be
ShareLinkContent, SharePhotoContent, or ShareVideoContent.MessageDialogResult
Example
setShouldFailOnDataError
Sets whether or not the native message dialog should fail when it encounters a data error.boolean
required
If
true, the dialog will fail when it encounters a data error. If false, it will continue.Example
Types
MessageDialogResult
Complete Example
Share Link via Messenger
Share Photo via Messenger
Notes
- The MessageDialog requires the Facebook Messenger app to be installed on the device
- All content types supported by ShareDialog are also supported by MessageDialog
- See the ShareContent documentation for details on content types