Loading
Salesforce now sends email only from verified domains. Read More
Email in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Content Area Sharing using Paste HTML, AMPscript, and Social Markup

          Content Area Sharing using Paste HTML, AMPscript, and Social Markup

          The HTML code in this example shares a dynamic piece of content from an Email Studio email to Facebook. The first commented part of the pasted HTML names the content area Shared content Region 1, and the second commented part of the pasted HTML contains the Social Markup link using the GetSocialPublishURLByName() AMPscript function.

          Example
          Example

          The AMPscript inside of the table refers to a data extension called Offers, and it pulls the content for each subscriber based on the subscriber key contained in the CustomerID column of the Offers data extensions. The content shared by the subscriber remains the static content and doesn't change, no matter who opens the shared content.

          <!-- RegionStart[ socialslot:"Shared content region 1",
              title:"First shared email content",
              description:"This is the first test of ExactTarget's social forwarding",
              csskey:"portfolio css 1"] -->
            <table width="100%" bgcolor="#FFFFFF" border="0" bordercolor="" cellpadding="5" cellspacing="0">
              <tr>
                <td style="font-family:Arial; font-size:13px">
                  %%[ var @row, @rows, @cnt
                   set @rows = LookupRows("Offers","CustomerID",_subscriberkey)
                   for (var @cnt = 0 to RowCount(@rows)) do
                  ]%%
                  %%=Field("Description",Row(@rows,@cnt))=%%
                  <br /></p>
                   %%[ next @cnt ]%%
                  <!-- Creates a link to share this content with Facebook -->
                  <a href="%%=GetSocialPublishURLByName('Facebook','US','Shared content region 1')=%%" 
                      alias="Social Forward to Facebook" 
                      title="Publish to Facebook">
                      <img 
                          src="http://image.exct.net/lib/ffcf14/m/1/social_default_facebook_icon.jpg" 
                          alt="Facebook" 
                          title="Facebook" 
                          border="0">
                   </a>
          
                </td>
              </tr>
            </table>
          <!-- RegionEnd[ socialslot:"Shared content region 1"]--> 
           
          Loading
          Salesforce Help | Article