Comments
Here's an overview of how you can get started integrating comments into your applications
Comment refers to a user-generated response or reaction to a specific piece of content, such as a post or content. Comments enable users to engage in conversations and express their thoughts, opinions, and emotions about the content they see. They provide a way for users to interact with each other and create a sense of community around the content. Commenting is an essential feature for social platforms as it encourages user engagement, helps create a more immersive experience for users, and can be used to generate insights into user behavior and preferences. In a Social Plus SDK product, the SDK provides the necessary tools and functionality for developers to integrate commenting into their apps or websites.
Furthermore, a comment supports real-time events and Live Object features, for more information please refer to Live Objects/Collections and Realtime Events.
Comment Reference Type
Incorporating comment reference types within your app enhances user engagement and promotes interaction, as it allows users to comment on both regular posts and content-specific posts. By differentiating between these two comment types, your app can provide a more organized and contextual commenting experience, catering to the diverse needs of your users and the content they interact with. Comment's referenceType
can be:
Post type comment: A post type comment is designed for regular posts, such as text updates, photos, or videos shared by users. These comments are associated with the regular post and are displayed beneath it, facilitating conversation and interaction.
Story type comment: Similar to post-type comments, these comments are associated with each story, driving user conversation.
Content type comment: A content type comment, on the other hand, is intended for content-specific posts, such as articles, or other specialized content.
Comment Repository
The functionality of comments can be utilized through the Comment Repository, which offers methods for interacting with a data source that stores posts. This includes methods for querying comments, creating a new comment, updating an existing comment, or deleting a comment.
Comment Description
Name | Data Type | Description |
|
| ID of the comment |
|
| ID of the user who posted the comment |
|
| ID of a parent comment |
|
| ID of a reference |
|
| Type of a reference |
|
| Type of the comment |
|
| Body of the comment |
|
| Additional properties to support custom fields |
|
| Number of children comments |
|
| Number of users who has read the comment |
|
| Mapping of reaction with reactionCounter |
|
| Number of all reactions for the comment |
|
| List of my reactions to the comment |
|
| Flag that determines if comment is deleted |
|
| Date/time when comment was edited |
|
| Date/time when comment was created |
|
| Date/time when comment was updated or deleted |
|
| Children comments |
|
| Flag for checking internally if this comment is reported or not |
|
| User IDs of the mentioned users |
Last updated