Post a Feed Element with a Mention
Call a method or use the ConnectApiHelper repository to post a feed.
You can post feed elements with mentions two ways. Use the ConnectApiHelper repository on GitHub to write a single line of code, or use this example, which calls postFeedElement(communityId, feedElement).