iOS SDK Version

FBSDKMessageDialog

@interfaceFBSDKMessageDialog:NSObject<FBSDKSharingDialog>
A dialog for sharing content through Messenger.
SUPPORTED SHARE TYPES
  • FBSDKShareLinkContent
UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018)
  • FBSDKShareOpenGraphContent
  • FBSDKSharePhotoContent
  • FBSDKShareVideoContent
  • FBSDKShareMessengerOpenGraphMusicTemplateContent
  • FBSDKShareMessengerMediaTemplateContent
  • FBSDKShareMessengerGenericTemplateContent
  • Any other types that are not one of the four supported types listed above
  • Convenience method to return a Message Share Dialog with content and a delegate.

    Declaration

    Objective-C
    +(nonnullinstancetype)dialogWithContent:(nonnullid<FBSDKSharingContent>)contentdelegate:(nullableid<FBSDKSharingDelegate>)delegate;
    Swift
    convenienceinit(content:SharingContent,delegate:SharingDelegate?)

    Parameters

    content
    The content to be shared.
    delegate
    The receiver’s delegate.
  • Convenience method to show a Message Share Dialog with content and a delegate.

    Declaration

    Objective-C
    +(nonnullinstancetype)showWithContent:(nonnullid<FBSDKSharingContent>)contentdelegate:(nullableid<FBSDKSharingDelegate>)delegate;

    Parameters

    content
    The content to be shared.
    delegate
    The receiver’s delegate.