Multiple Images
Upload up to 10 images per post with individual reactions
Rich Media Support
JPEG, PNG, WebP formats up to 100MB per image
Overview
Image posts combine visual content with descriptive text:- Multiple Images: Up to 10 images per post
- Rich Captions: Text descriptions with mentions and hashtags
- Parent-Child Structure: Each image becomes a child post
- Interactive Features: Users can react to individual images
Requirement | Limit | Notes |
---|---|---|
File Size | Up to 100MB per image | Platform may have lower limits |
Image Count | Maximum 10 images | Per single post |
File Formats | JPEG, PNG, WebP, etc. | Platform dependent |
Images must be uploaded first before creating the post. See Image Handling for upload instructions.
1
Upload Images
Use the File Repository to upload your images and get file IDs
2
Create Post
Use the file IDs in your post creation request
3
Handle Response
The post will contain parent and child posts for each image
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | String | ✅ | Caption text (max 20,000 characters) |
images/imageFiles | Array | ✅ | Image files or uploaded image data |
targetType | Enum | ✅ | Target type (user or community ) |
targetId | String | ❌ | Target ID (null for own feed) |
tags | Array<String> | ❌ | Tags for categorization |
metadata | Object | ❌ | Custom metadata |
Best Practices
Image Optimization
Image Optimization
- Compress images before upload to reduce file size
- Resize images to appropriate dimensions (e.g., 1080x1080)
- Use appropriate file formats (JPEG for photos, PNG for graphics)
- Implement progress indicators for large uploads
User Experience
User Experience
- Show image previews before posting
- Allow users to reorder images
- Provide crop and edit functionality
- Handle upload failures gracefully with retry options
Performance
Performance
- Upload images in parallel when possible
- Cache uploaded images to avoid re-uploads
- Implement lazy loading for image previews
- Use appropriate image loading libraries
Troubleshooting
Image Upload Failures
Image Upload Failures
Problem: Images fail to upload or post creation failsSolutions:
- Check file size (must be under 100MB per image)
- Verify supported format (JPEG, PNG, WebP)
- Ensure stable internet connection
- Implement retry logic with exponential backoff
Image Quality Issues
Image Quality Issues
Problem: Images appear blurry or low qualitySolutions:
- Upload images at optimal resolution (1080x1080 or higher)
- Avoid excessive compression before upload
- Use appropriate file formats (JPEG for photos, PNG for graphics)
Memory Issues
Memory Issues
Problem: App crashes or becomes slow with large imagesSolutions:
- Implement image compression before upload
- Use image loading libraries with memory management
- Resize images to appropriate dimensions
- Clear image cache periodically
Parent-Child Structure: When you upload multiple images, the main post becomes the parent, and each image creates a child post that users can individually react to and comment on.
Common Use Cases
- Photo Sharing: Share personal photos and memories
- Product Showcases: Display products with multiple angles
- Event Documentation: Share photos from events and gatherings
- Before/After Comparisons: Show transformations or progress
- Step-by-Step Guides: Visual tutorials and instructions
- Gallery Posts: Curated collections of related images