Create engaging comments with optimistic updates, mentions, and threaded replies
Reference Type | Description | Use Cases | Character Limit |
---|---|---|---|
post | Comments on regular posts | Text posts, media posts, shared content | 20,000 characters |
story | Comments on story content | Temporary stories, story highlights | 20,000 characters |
content | Comments on specialized content | Articles, custom content types | 20,000 characters |
Parameter | Type | Required | Description |
---|---|---|---|
referenceId | String | Yes | ID of the content being commented on |
referenceType | Enum | Yes | Type of content (.post, .story, .content) |
text | String | Yes | Comment text content (max 20,000 characters) |
parentId | String | No | ID of parent comment for threaded replies |
commentId
using the parentId
parameter.referenceId
and referenceType
match the original comment’s content.Optimistic Updates
Performance Optimization
User Experience
Content Guidelines
Comment creation fails
Optimistic updates not working
Threaded replies not appearing correctly
Performance issues