Text Posts
Simple text-based posts with formatting support
Image Posts
Photo sharing with multiple image support and filters
Video Posts
Video content with streaming and playback controls
File Posts
Document and file sharing capabilities
Poll Posts
Interactive polls and surveys for user engagement
Live Stream Posts
Real-time live streaming integration
Custom Posts
Extend functionality with custom post types
Posts support real-time events and Live Object features. See Live Objects/Collections and Realtime Events for more.
Post Structure
Posts use a parent-child relationship:- The parent post acts as a container (e.g., for text or metadata)
- Each image, video, or file is a separate child post
- Both parent and child posts support reactions and comments
Users can interact (react, comment) with both parent and child posts, enabling rich engagement.
Post Data Model
Name | Data Type | Description |
---|---|---|
postId | String | ID of the post |
parentPostId | String | ID of the parent post (null if parent) |
postedUserId | String | ID of the user who posted |
targetID | String | ID of the target (e.g., community, user) |
targetType | String | Type of target (e.g., community, user) |
dataType | String | Data type of post (text, image, video, etc.) |
data | Object | Data of the post |
metadata | Object | Metadata of the post |
flagCount | Integer | Number of times the post is flagged |
editedAt | Date | Date/time the post was edited |
createdAt | Date | Date/time the post was created |
updatedAt | Date | Date/time the post was updated |
reactions | Object | Information about the post reactions |
reactionsCount | Integer | Number of reactions to the post |
myReactions | Array of strings | Reactions by the current user |
commentsCount | Integer | Number of comments to the post |
comments | Array of AmityComment | The first three comments for previewing |
childrenPosts | Object | Child posts (e.g., images, videos) |
isDeleted | Boolean | True if the post is deleted |
hasFlaggedComment | Boolean | True if the post has flagged comments |
hasFlaggedChildren | Boolean | True if the post has flagged children |
tags | Array of strings | Arbitrary tags for querying/filtering posts |
feedId | String | ID of the post’s feed |
Quick Start Guide
1
Choose Post Type
Select the appropriate post type based on your content:
- Text: For discussions and announcements
- Image: For photo sharing and visual content
- Video: For video content and tutorials
- Poll: For community engagement and feedback
- File: For document sharing
- Live Stream: For real-time broadcasts
- Custom: For advanced or app-specific content
2
Create Content
Use the creation guides for your chosen post type:
3
Manage Post
Use management tools to edit, delete, or moderate your posts
4
Track Performance
Monitor engagement through analytics and impression tracking