A dialog for sharing content on Facebook.
Conforms to: | FBSDKSharingDialog |
Superclass: | NSObject |
Declared in: | FBSDKShareDialog.h |
fromViewController
A UIViewController to present the dialog from.
@property (nonatomic,
weak) UIViewController *fromViewController;
If not specified, the top most view controller will be automatically determined as best as possible.
FBSDKShareDialog.h
mode
The mode with which to display the dialog.
@property (nonatomic,
assign) FBSDKShareDialogMode mode;
Defaults to FBSDKShareDialogModeAutomatic, which will automatically choose the best available mode.
FBSDKShareDialog.h
showFromViewController:withContent:delegate:
Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate.
Parameter | Description |
---|---|
viewController | A UIViewController to present the dialog from, if appropriate. |
content | The content to be shared. |
delegate | The receiver's delegate. |
+ (instancetype)
showFromViewController: | (UIViewController *)viewController |
withContent: | (id<FBSDKSharingContent>)content |
delegate: | (id<FBSDKSharingDelegate>)delegate; |
FBSDKShareDialog.h