Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Embedding Socialcast Reach Extensions in Salesforce via a Visualforce page (2036573)
Cause
Visualforce pages are IFrames within Salesforce.com. 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.
Resolution
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: http://ogp.me/ns#">
<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/{!Opportunity.id}" />
<body>
<div id="socialcast_reach" style="height: 500px; width: 500px;"></div>
<script type="text/javascript">
var _reach = _reach || [];
_reach.push({
container: 'socialcast_reach',
domain: 'https://your-community-url/',
token: '37c69e64f215331cc4a2'
});
(function(){
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);
})();
</script>
</body>
</html>
</apex:page> 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.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

