Types
ShareContent
ShareLinkContent
A model for status and link content to be shared.'link'
required
Must be set to
'link' to indicate this is link content.string
required
URL for the content being shared.
ShareContentCommonParameters
Common sharing parameters like hashtag, people tags, and place ID.
string
A predefined quote to attach to this share. If specified, the quote text will render with custom styling on top of the link.
string
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.
string
The title to display for this link.Deprecated: This field is deprecated from Graph API 2.9. See Facebook’s changelog.
string
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.'photo'
required
Must be set to
'photo' to indicate this is photo content.Array<SharePhoto>
required
Array of photos to be shared. Each photo must be a local file URL when using ShareButton.
ShareContentCommonParameters
Common sharing parameters like hashtag, people tags, and place ID.
string
URL for the content being shared.
SharePhoto
string
required
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.boolean
Specifies whether the photo was generated by the user or the application.
string
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.'video'
required
Must be set to
'video' to indicate this is video content.ShareVideo
required
The video to be shared.
ShareContentCommonParameters
Common sharing parameters like hashtag, people tags, and place ID.
string
URL for the content being shared.
string
Description of the video.
string
Title of the video.
SharePhoto
The photo that represents the video (thumbnail).
ShareVideo
string
required
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.Array<string>
List of IDs for taggable people to tag with this content.
string
The ID for a place to tag with this content.
string
A value to be added to the referrer URL when a person follows a link from this shared content on feed.
string
A hashtag to be added to the share interface. The hashtag must be 32 characters or less.