iOS SDK Version

FBSDKSharingContent

@protocolFBSDKSharingContent<FBSDKCopying,FBSDKSharingValidation,NSSecureCoding>
A base interface for content to be shared.
  • URL for the content being shared.
    This URL will be checked for all link meta tags for linking in platform specific ways. See documentation for App Links (https://developers.facebook.com/docs/applinks/)

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite)NSURL*_NonnullcontentURL;
    Swift
    varcontentURL:URL{getset}

    Return Value

    URL representation of the content link
  • Hashtag for the content being shared.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)FBSDKHashtag*hashtag;
    Swift
    @NSCopyingvarhashtag:FBSDKHashtag?{getset}

    Return Value

    The hashtag for the content being shared.
  • List of IDs for taggable people to tag with this content. See documentation for Taggable Friends (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends)

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite)NSArray<NSString*>*_NonnullpeopleIDs;
    Swift
    varpeopleIDs:[String]{getset}

    Return Value

    Array of IDs for people to tag (NSString)
  • The ID for a place to tag with this content.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)NSString*placeID;
    Swift
    varplaceID:String?{getset}

    Return Value

    The ID for the place to tag
  • A value to be added to the referrer URL when a person follows a link from this shared content on feed.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)NSString*ref;
    Swift
    varref:String?{getset}

    Return Value

    The ref for the content.
  • For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)NSString*pageID;
    Swift
    varpageID:String?{getset}

    Return Value

    The ID of the Facebook page this share is associated with.
  • A unique identifier for a share involving this content, useful for tracking purposes.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly,nullable)NSString*shareUUID;
    Swift
    varshareUUID:String?{get}

    Return Value

    A unique string identifying this share data.
  • Adds content to an existing dictionary as key/value pairs and returns the updated dictionary

    Declaration

    Objective-C
    -(nonnullNSDictionary<NSString*,id>*)addParameters:(nonnullNSDictionary<NSString*,id>*)existingParametersbridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions;
    Swift
    funcaddParameters(_existingParameters:[String:Any],optionsbridgeOptions:ShareBridgeOptions=[])->[String:Any]

    Parameters

    existingParameters
    An immutable dictionary of existing values
    bridgeOptions
    The options for bridging

    Return Value

    A new dictionary with the modified contents