I'm trying to use apex code so user will be able to post message in other user feed.
Tried this simple code:
ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), targetUserId, ConnectApi.FeedElementType.FeedItem, 'Test message...');
As a result, I can see the message does appear in the sender user feed:senderUser to targetUserTes message...
But I the message does not appear in the target user feed.
Am I doing something wrong or this is how it should work? If yes, is there any option that it will appear on the target user feed?