GetSocialPublishURL()

Returns HTML code for sharing a content region on a supported social network. Use this function with the Social Forward feature of Marketing Cloud Engagement.

The GetSocialPublishURL() function has five parameters:

  • socialNetworkCode (string): Required. The name of the social network.
  • contentRegion (string): Required. The name of the content region to share on the social network.
  • socialNetworkParamKey (string): The key of a parameter to pass to the target social network.
  • socialNetworkParamValue (string): The value of a parameter to pass to the target social network.

You can pass multiple key-value pairs for parameters by appending them to the end of the function.

Pass a number from the Number Code column as the first parameter in the function.

This list includes several social media sites that are no longer active as of 2023. This list is provided for completeness.

Social NetworkNumber Code
Facebook1
Del.icio.us2
Digg3
MySpace4
StumbleUpon5
Google6
Microsoft7
Yahoo8
LinkedIn9
ShareThis10
Twitter11
Google+15

In the pasted HTML code below, the GetSocialPublishURL() function creates a link to Facebook in order to share the specified content area on that network.