Wednesday 10 December 2014

How to add Salesforce Chatter Information in Visualforce Page??

Adding chatter functionality in to visualforce is quite simple. Use below tags.

  • <chatter:feed>: Displays the Chatter feed for a record.

  • <chatter:feedWithFollowers>: An integrated UI component that displays the Chatter feed for a record, its list of followers, and optionally, a header bar that allows users to show or hide the Chatter feed and subscribe to it.

  • <chatter:follow>: Renders a button for a user to follow or unfollow a Chatter record.

  • <chatter:followers>: Displays the list of Chatter followers for a record.

<chatter:feed entityId="{!Leadid}" />

<chatter:follow entityId="{!Leadid}" />
<chatter:followers entityId="{!Leadid}" />

Id LeadId =  ApexPages.currentPage().getParameters().get('id');


No comments: