Summary
GetPublishedSocialContent()
GetSocialPublishUrl()
GetSocialPublishUrlByName()
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
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.
| Marketing Cloud Engagement | ✅ Yes |
| Marketing Cloud Next | ❌ No |
1GetSocialPublishURL(socialNetworkCode,
2 contentRegion,
3 socialNetworkParamKey,
4 socialNetworkParamValue)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.
Note
| Social Network | Number Code |
|---|---|
| 1 | |
| Del.icio.us | 2 |
| Digg | 3 |
| MySpace | 4 |
| StumbleUpon | 5 |
| 6 | |
| Microsoft | 7 |
| Yahoo | 8 |
| 9 | |
| ShareThis | 10 |
| 11 | |
| 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.
1<!-- RegionStart[ name:'Shared content region 1',
2title:'First shared email content',
3description:'This is an example of shared content',
4csskey:'portfolio css 1'] -->
5<tablewidth='100%'bgcolor='#FFFFFF'border='0'bordercolor=''cellpadding='5'cellspacing='0'>
6<tr>
7<tdstyle='font-family:Arial; font-size:13px'>
8<imgsrc='http://example.com/images/logo.jpg' title='logo'align='left'border='0'/>
9<p id='text-placeholder'style='margin-top: 0px; margin-bottom: 0px;'>This is an example of a shared content area!&nbsp; Please feel free to pass on this information!<br/>
10<br/></p>
11<!-- Creates a link to share this content with facebook -->
12<a href='%%=GetSocialPublishURL('1','Shared content region 1')=%%'
13alias='Social Forward to Facebook'
14title='Publish to Facebook'>
15<img src='http://images.dev2.et.local/lib/ffcf14/m/1/social_default_facebook_icon.jpg' alt='Facebook' title='Facebook' border='0'></a>
16</td>
17</tr>
18</table>
19<!-- RegionEnd[ name:'Shared content region 1'] -->