How to show the Chatter feed for a record in a custom component? I am trying to use the forceChatter:feed type="Record" but it is not giving the correct results for the record? Can anyone help me with the implementation of forceChatter:publisher and forceChatter: feed in the custom aura/LWC component on a record which has chatter enabled.
If you must post just one FeedItem, and have to post it to the CollaborationGroup on your instead of showing a chatter:feed, which will just show just Chatter related to that record, you could use the chatter:newsFeed tag instead. This will show all Chatter relevant for the running user. That way, if the running User is a member of the CollaborationGroup to which you posted the FeedItem, the running User will, when viewing this see the recent Chatter posts for the CollaborationGroup, as well as any Chatter posts for the record in context, or Chatter posts directed at them.