iOS SDK Version

FBSDKSharingDialog

@protocolFBSDKSharingDialog<FBSDKSharing>
The common interface for dialogs that initiate sharing.
  • A Boolean value that indicates whether the receiver can initiate a share.
    May return NO if the appropriate Facebook app is not installed and is required or an access token is required but not available. This method does not validate the content on the receiver, so this can be checked before building up the content.
    See
    [FBSDKSharing validateWithError:]

    Declaration

    Objective-C
    @property(nonatomic,readonly)BOOLcanShow;
    Swift
    varcanShow:Bool{get}

    Return Value

    YES if the receiver can share, otherwise NO.
  • Shows the dialog.

    Declaration

    Objective-C
    -(BOOL)show;
    Swift
    funcshow()->Bool

    Return Value

    YES if the receiver was able to begin sharing, otherwise NO.