social:profileViewer

UI component that adds the Social Accounts and Contacts viewer to Account (including person account), Contact, or Lead detail pages. The viewer displays the record name, a profile picture, and the social network icons that allow users to sign in to their accounts and view social data directly in Salesforce.

Social Accounts and Contacts must be enabled for your organization. Note that this component is only supported for Account, Contact, and Lead objects and can only be used once on a page. This component isn’t available for Visualforce pages on Force.com sites.

The Social Accounts, Contacts, and Leads feature is now unavailable. See Twitter/X Public API Access.

Note

Example 

This example displays the Social Accounts and Contacts viewer for a contact.

1<apex:page standardController="Contact">
2      <social:profileViewer entityId="{!contact.id}"/>
3    </apex:page>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
entityIdidEntity ID of the record for which to display the Social Accounts and Contacts viewer; for example, Contact.Id.Yes24.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global