Types
ShareContent
ShareLinkContent
A model for status and link content to be shared.Must be set to
'link' to indicate this is link content.URL for the content being shared.
Common sharing parameters like hashtag, people tags, and place ID.
A predefined quote to attach to this share. If specified, the quote text will render with custom styling on top of the link.
The description of the link. If not specified, this field is automatically populated by information scraped from the contentUrl.Deprecated: This field is deprecated from Graph API 2.9. See Facebook’s changelog.
The title to display for this link.Deprecated: This field is deprecated from Graph API 2.9. See Facebook’s changelog.
The URL of a picture to attach to this share.Deprecated: This field is deprecated from Graph API 2.9. See Facebook’s changelog.
Example
SharePhotoContent
A model for photo content to be shared.Must be set to
'photo' to indicate this is photo content.Array of photos to be shared. Each photo must be a local file URL when using ShareButton.
Common sharing parameters like hashtag, people tags, and place ID.
URL for the content being shared.
SharePhoto
The URL to the photo. When sharing with ShareButton, this must be a local file URI (e.g.,
file:///path/to/photo.jpg), not a web URL.Specifies whether the photo was generated by the user or the application.
User-generated caption for the photo. The caption must come from the user, as pre-filled content is forbidden by Facebook Platform Policies (2.3).
Example
ShareVideoContent
A model for video content to be shared.Must be set to
'video' to indicate this is video content.The video to be shared.
Common sharing parameters like hashtag, people tags, and place ID.
URL for the content being shared.
Description of the video.
Title of the video.
The photo that represents the video (thumbnail).
ShareVideo
The URL to the video. Must point to the location of the video on disk (e.g.,
file:///path/to/video.mp4).Example
ShareContentCommonParameters
Common parameters that can be used with all share content types.List of IDs for taggable people to tag with this content.
The ID for a place to tag with this content.
A value to be added to the referrer URL when a person follows a link from this shared content on feed.
A hashtag to be added to the share interface. The hashtag must be 32 characters or less.