Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
Search the VMware Knowledge Base (KB)   View by Article ID

Embedding Socialcast Reach Extensions in Salesforce via a Visualforce page (2036573)


Visualforce pages are IFrames within When embedding a Socialcast Reach discussion extension in such a page, the code detects the information of the Visualforce frame and not the containing page that loaded it.
This article provides information on embedding Socialcast Reach Extensions in Salesforce via a Visualforce page.


To allow discussion extensions to operate correctly in a instance, the Open Graph Protocol markup must be used with the extension, so that the correct parameters from the parent page are passed to the extension.

For example, to embed a discussion extension stream in a Visualforce page which is loaded for Opportunities, you can use a code similar to:

<apex:page standardController="Opportunity">
     <html prefix="og:">
     <meta property="og:title" content="Opportunity [{!Opportunity.Account.Name}] - {!Opportunity.Name}" />
     <meta property="og:description" content="{!Opportunity.Description}" />
     <meta property="og:url" content="https://salesforce-instance-url/{!}" />
     <div id="socialcast_reach" style="height: 500px; width: 500px;"></div>
     <script type="text/javascript">
     var _reach = _reach || [];
     container: 'socialcast_reach',
     domain: 'https://your-community-url/',
     token: '37c69e64f215331cc4a2'
     var e=document.createElement('script'); e.type='text/javascript'; e.async = true;
     e.src= document.location.protocol + '//your-community-url/services/reach/extension.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s);

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 1 Ratings