Is there anyway to post a feed comment dynamically for the particular feeditems in visualforce?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
I don't know if understand your question, but if you want to post a comment, you can use:
Chatter Rest API: http://www.salesforce.com/us/developer/docs/chatterapi/
You can use the PostComment Method on the ConnectAPI (which is effectively an Apex enabled version of the Chatter REST API) if you know the FeedItem/Feed Element you are trying to post to: From docs:
ConnectApi.Comment comment = ConnectApi.ChatterFeeds.postCommentToFeedElement(null, '0D5D0000000KuGh', 'I agree with the proposal.' );
Where first param is Community Id, second is the Feed Element Id, and final param is the actual text.
I also did a session at DF14 which you can see here explaining how to get started with the ConnectAPI