Content

The Content API calls are used to add additional media, such as images and text, to the activity being shared. For example, you can use the Content API calls to enable a user to share a URL along with a blog post or an image with a video. Such elements will appear along with the shared activity in the social network chosen by the user.

Note: Not all options are available to every provider.

Usagejanrain.engage.share

Supported by: All Providers

Field Value Description
setMessage Text This adds preset text to the text box used to provide messages with the activity being shared.

Supported by: Facebook, LinkedIn (broadcast and contacts), Google and Yahoo

Field Value Description
setTitle Text The title given to the shared content.

Supported by: Facebook and LinkedIn (broadcast)

Field Value Description
setUrl URL This is the URL that associated with the content being shared.
setImage URL pointing to image An image associated with the content being shared.

Supported by: Facebook

Field Value Description
setDescription Text The description of the shared content. This appears in the preview of the shared object and describes what is being shared. Not to be confused with user generated content, which appears as the status message.
setMedia URL A Flash or video object associated with the content being shared.
setActionLink URL Link that appears below the user-generated message and content fields. In the case of Facebook, this link appears next to the “Like” and “Comment” links. Format is JSON with “name” and “link”, both properties being required.
{"name":"foo", "link":"http://bar.com"}

Help Us Improve!

Give us your feedback