Platform Adapters
Platform adapters handle the conversion and publishing of content to each social media platform.
Architecture Diagram
Common Interface
All platform adapters implement a common interface:
| Method | Description |
|---|---|
authenticate() | Handle OAuth or API key authentication |
publish() | Publish content to the platform |
validate() | Validate content against platform rules |
getMetrics() | Retrieve engagement metrics |
Platform Constraints
Twitter/X
- Character limit: 280 characters
- Hashtags: Maximum 30
- Images: Up to 5MB
- Videos: Up to 512MB
LinkedIn
- Character limit: 3,000 characters
- Hashtags: Maximum 30
- Images: Up to 8MB
- Videos: Up to 200MB
Instagram
- Character limit: 2,200 characters
- Hashtags: Maximum 30
- Images: Up to 8MB
- Videos: Up to 4GB
- Aspect ratios: 1:1, 4:5, or 1.91:1
Rate Limiting
The adapter layer includes built-in rate limiting:
- Rate Limiter: Enforces API rate limits per platform
- Exponential Backoff: Automatic retry with increasing delays
- Circuit Breaker: Prevents cascading failures when a platform is down
Extensibility
New platform adapters can be added by implementing the common interface. The architecture supports future platforms like TikTok, Facebook, and others.