Post a Comment

This example calls postCommentToFeedElement(communityId, feedElementId, text) to post a plain text comment to a feed element.
ConnectApi.Comment comment = ConnectApi.ChatterFeeds.postCommentToFeedElement(null, '0D5D0000000KuGh', 'I agree with the proposal.' );
Previous
Next