Inherits from NSObject
Conforms to FBSDKSharingDialog
Declared in FBSDKShareDialog.h

Properties

fromViewController

A UIViewController to present the dialog from, if appropriate.

@property (nonatomic, weak) UIViewController *fromViewController

Discussion

This value is required for FBSDKShareDialogModeShareSheet.

Declared In

FBSDKShareDialog.h

mode

The mode with which to display the dialog.

@property (nonatomic, assign) FBSDKShareDialogMode mode

Discussion

Defaults to FBSDKShareDialogModeAutomatic, which will automatically choose the best available mode.

Declared In

FBSDKShareDialog.h

Class Methods

showFromViewController:withContent:delegate:

Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate.

+ (instancetype)showFromViewController:(UIViewController *)viewController withContent:(id<FBSDKSharingContent>)content delegate:(id<FBSDKSharingDelegate>)delegate

Parameters

viewController

A UIViewController to present the dialog from, if appropriate.

content

The content to be shared.

delegate

The receiver’s delegate.

Declared In

FBSDKShareDialog.h