Text Post

When creating a text post on a particular user's feed, you can provide the id of that user for the targetUser parameter and call the following method:

If you want to create a post on your own feed, use targetMe()in lieu of targetUser(userId). If you want to create the post on a particular community, replace targetUser(userId) with targetCommunity(communityId).

Create a text post with mention

When creating a text post with mention, you can provide the JsonObject for the metadata parameter. The metadata is a mention structure and that depends on your design mention structure. However, we have a default solution to help you create the metadata.

If you want the person you mentioned to get promptly notified, you must provide the list of userId for the mentionUsers parameter.

To render mention, refer to Rendering Mention section.

Last updated