function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karthick RajaKarthick Raja 

Chatter in Visualforce page

Hi folks,
          Can anyone tell me how to add the comments in chatter using VFP?
I wanna add the comments and edit the comments in visualforce .

Please help!
SonamSonam (Salesforce Developers) 
Following is a very basic code which you can use on visualfor ce to show chatter  feed on VF on a contact record:

URL pass the contact ID:

VF code:

<apex:page standardController="Contact" >
<chatter:feed entityId="{!}" feedItemType="TextPost" showpublisher="True"></chatter:feed> 

Hope this helps!