---
schema_version: "1"
id: 49da3d96d84f9afd8b81a051618b972e0a6f4d6f7742f0007aa4c5a9f1090da1
title: Content Area Sharing using Paste HTML and Social Markup
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_es_content_area_sharing_paste_html.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_es_content_area_sharing_paste_html.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 70569f0e934e24641a9ce5567d00722d69de21c0350b6eb5c9ec3f1701644243
description: The HTML code in this example shares a static 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 creates the Social Markup link using the GetSocialPublishURLByName() AMPscript function.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Content Area Sharing using Paste HTML and Social Markup

The HTML code in this example shares a static 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 creates the Social Markup link using the GetSocialPublishURLByName() AMPscript function.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_email-264-0-0-production-enus/a0b807ef-dfbb-412c-b26e-310d91f2d6df/images/icon_example.png)

Example

```html
<!-- RegionStart[ socialslot:"Shared content region 1",
    title:"First shared email content",
    description:"This is an example of shared content",
    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">
        <img  src="https://example.com/images/logo.jpg"
              title="logo" align="left" border="0" />

        <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 />
        <br /></p>
 
        <!-- 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"] -->
```