Integrating your site with social media | HCL Digital Experience
The Content Template Catalog templates provide sample integration with social media services, but you will typically replace these with a customized implementation.
About this task
Note: Due to restrictions with the Facebook and
Twitter API, these social media tools will not work if the website
is accessed by using a short DNS host name. The full server host name
must be used for the social media buttons to work correctly.
- For Twitter:
- Create a Twitter button by going to this URL: https://twitter.com/about/resources/buttons#tweet
- Use these settings:
- URL:
[PathCmpnt type="noprefixbase"][URLCmpnt context="portalContext" type="content" mode="static" htmlencode="true"]
- Tweet Text:
[Property context="portalContext" type="content" field="title"]
- Via: Your Twitter account
- URL:
- Copy the generated code and replace the markup in this component: CTC Design>Components>Fragments>Tweet Button
- For Facebook:
- Create a Like button by going to this URL: http://developers.facebook.com/docs/reference/plugins/like
- Use these settings:
- URL: Facebook requires a real URL, so you cannot use Web Content Manager tags. Use a temporary URL instead. For example: http://replaceme
- Click Get Code.
- Click the IFRAME link in the dialog.
- Copy the code and replace the markup in this component: CTC Design>Components>Fragments>Like Button
- Replace http://replaceme with
[PathCmpnt type="noprefixbase"][URLCmpnt context="portalContext" type="content" mode="static" htmlencode="true"]