Post Structure
Understand parent-child relationships in media posts
Content Access
Access post data and media information efficiently
Media Handling
Handle images, videos, and files with multiple resolutions
Interactive Content
Display polls and live streams in your application
Post Structure Overview
In social.plus’s SDK, posts with images, files, or videos follow a Parent-Child relationship, where each uploaded image/file is represented as a separate child post. When creating an image/file post, any text that is set will act as the Parent post.The Parent post contains a
childrenPosts
property, which provides an array of Post instances for each child post. For more information about post structure, please refer to Post Overview.Key Concepts
Parent-Child Relationship
Parent-Child Relationship
- Parent Post: Contains the main text content and metadata
- Child Posts: Individual media items (images, files, videos)
- Data Access: Both parent and child posts use the same
data
property - Flexible Structure: Allows efficient management of complex multimedia posts
Post Data Access
Post Data Access
- Text Posts: Access content directly through the
data
property - Media Posts: Access media information through specialized functions
- File Information: Use
getFileInfo()
for file details and download URLs - Image Information: Use
getImageInfo()
for image metadata and URLs
Accessing Children Posts
Each instance of a Post holds several pieces of information, including data, reactions, comments, metadata, child posts, and more. Here’s how to access parent and child post information:Content Types
Image Posts
Posting visual content such as photos, graphics, or images is facilitated by this type of post. Images are automatically transformed into four different sizes for versatile usage.Small
Thumbnail size for previews
Medium
Standard feed display
Large
High-quality viewing
Full
Original resolution
Maximum Size: 1 GB per image. For more information about image handling, please refer to Image Handling.
Image Size Parameters
If you are using your own implementation to download the image of appropriate size, you need to construct the download URL yourself by appending size query parameter. Example URL Construction:File Posts
This is a post that contains a file attachment, such as a PDF, a Word document, or any other type of file. Useful for sharing documents, spreadsheets, presentations, and other file types within communities.For more information about file handling, please refer to File Handling.
Video Posts
Share video content within feeds, such as short clips or longer videos. Videos are automatically transcoded into different resolutions for optimal playback across devices.1080p
Full HD quality
720p
HD quality
480p
Standard quality
360p
Mobile-optimized
Original
Source resolution
Maximum Size: 1 GB per video. Transcoding: Videos undergo transcoding from their original resolution. Original size is accessible immediately, but transcoded resolutions take time to be ready.
For more information about video handling, please refer to Video Handling.
Live Stream Posts
Live stream posts offer an effective means of creating captivating and interactive content that engages users and promotes deeper connections among them. The social.plus SDK enables developers to swiftly integrate live stream posts into social feeds.Real-time Interaction
Live engagement with audience
Stream Integration
Easy integration into social feeds
For more information about live streaming, please refer to Video Streaming.
Poll Posts
Implement poll functionality in posts by leveraging the existing poll features in social.plus SDK. Polls can be created as child posts within the post thread, with poll data and options easily accessible to users.Multiple Options
Create polls with 2-10 answer options
Time Limits
Set custom voting deadlines or keep open indefinitely
For more information about polls, please refer to Polls.