Inherits from NSObject
Conforms to FBSDKSharingDialog
Declared in FBSDKShareDialog.h

Overview

A dialog for sharing content on Facebook.

Properties

fromViewController

A UIViewController to present the dialog from.

@property (nonatomic, weak) UIViewController *fromViewController

Discussion

If not specified, the top most view controller will be automatically determined as best as possible.

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. - Parameter viewController: A UIViewController to present the dialog from, if appropriate. - Parameter content: The content to be shared. - Parameter delegate: The receiver’s delegate.

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

Declared In

FBSDKShareDialog.h