Posts
Here's an overview of posts and how you can get started with integrating them into your applications
Last updated
Here's an overview of posts and how you can get started with integrating them into your applications
Last updated
A post can be defined as a piece of content created and shared by a user within a network or community. The post can include various types of information such as text, images, videos, links, or other multimedia elements. The SDK provides the necessary tools and functionality for users to create, view, and interact with posts in a social feed. Posts can be displayed in chronological order and can be customized and configured using various settings and options provided by the SDK. The purpose of a post in a product context is to allow users to share information, express thoughts, or connect with others within a social network or community using the SDK.
Social Plus supports a wide range of post types, each with its own unique set of features and capabilities. The types of posts that you can create in Social Plus include text, image, video, file, live stream, poll, and custom posts. Furthermore, a post supports real-time events and Live Object features, for more information please refer to Live Objects/Collections and Realtime Events
The post structure is a parent-child relationship, with the parent post serving as a container for text data, for other post types such as images or videos, while each image or video is treated as a separate child post. To illustrate this, let's take the example of an image post with two images. In this case, there would be one parent post serving as a text container, and two child posts, each containing one of the images.
In addition to enabling users to create more dynamic and engaging content, both parent and child posts also support reactions and comments. This means that users can interact with not only the parent post but also with each child post, providing a more comprehensive and engaging way to engage with content.
The functionality of posts can be utilized through the Post Repository, which offers methods for interacting with a data source that stores posts. This includes methods for obtaining a specific post, creating a new post, updating an existing post, or deleting a post.
Name | Data Type | Description |
|
| ID of the post |
|
| ID of the parent post, this can be null if the post is a parent post. |
|
| ID of the user who posted |
|
| ID of the user who shared the post |
|
| Number of times the post is shared |
|
| ID of the target |
|
| Type of target |
|
| Data type of post |
|
| Data of the post |
|
| Metadata of the post |
|
| Number of times that the post is flagged |
|
| Date/time the post was edited |
|
| Date/time the post was created |
|
| Date/time the post was updated |
|
| Information about the post reactions |
|
| Number of reactions to the post |
|
| Reactions to the post |
|
| Number of comments to the post |
|
| The first three comments of the post for previewing purpose |
|
| Children posts |
|
| Flag that indicates if the post is deleted. True means post is already deleted. |
|
| Flag that indicates if the post has flagged comments. True means it has. |
|
| Flag that indicates if the post has flagged children. True means it has. |
|
| Arbitrary strings that can be used for defining and querying for the posts in community and user feeds. |
|
| ID of the post's feed |