GetSocialPublishURLByName()

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 GetSocialPublishURLByName() function has five parameters:

  • socialNetworkName (string): Required. The name of the social network.
  • countryCode (string): Required. An ISO country code.
  • 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.

This function supports these social networks.

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

  • Del.icio.us
  • Digg
  • Facebook
  • Google
  • Google+
  • LinkedIn
  • Microsoft
  • MySpace
  • ShareThis
  • StumbleUpon
  • Twitter
  • Yahoo