Enable rich, interactive discussions in your application with comprehensive comment functionality. social.plus SDK provides powerful commenting features including threaded discussions, real-time updates, multimedia support, and advanced moderation capabilities.

Real-time Updates

Live objects and collections for instant comment synchronization

Threaded Discussions

Support for nested replies and complex conversation structures

Multimedia Comments

Text, images, and rich media attachments in comments
Comments support Live Objects and real-time events, providing automatic updates when comments are added, edited, or deleted across all connected clients.

Comment Reference Types

Comments can be associated with different types of content, providing contextual discussions based on the content type.
Reference TypeDescriptionUse Cases
postComments on regular user postsSocial media feeds, status updates, photo sharing
storyComments on story contentTemporary content, social stories, time-limited posts
contentComments on specialized contentArticles, documents, media galleries, custom content

Key Features

Comment Creation

Create text comments, image comments, or mixed content with optimistic updates and validation.

Comment Retrieval

Query and filter comments with advanced options, pagination, and real-time synchronization.

Threading & Replies

Build nested conversation threads with unlimited reply depth and proper organization.

Reactions & Engagement

Enable user engagement through reactions, mentions, and social interaction features.

Content Moderation

Edit, delete, flag, and moderate comments with comprehensive administrative controls.

Real-time Updates

Automatic synchronization across all clients with live objects and real-time events.

Comment Properties

Understanding comment data structure helps in building robust commenting systems.
PropertyTypeDescription
commentIdStringUnique identifier for the comment
userIdStringID of the user who posted the comment
parentIdString?ID of parent comment (for threaded replies)
referenceIdStringID of the content being commented on
referenceTypeStringType of content (post, story, content)
dataTypeStringType of comment content (text, image)
dataObjectMain content body of the comment
metadataObjectAdditional custom properties and fields
childrenCountNumberNumber of reply comments
reactionsCountIntegerTotal number of reactions on the comment
myReactionsArrayCurrent user’s reactions to the comment
isDeletedBooleanWhether the comment has been deleted
createdAtDateTimeComment creation timestamp
editedAtDateTimeLast edit timestamp (if edited)