How akash80/all-social-media-api works
This is a config-driven Node.js client library for publishing and managing content across Facebook, Instagram, LinkedIn, Threads, and WhatsApp. A consumer supplies credentials and invokes the client; it prepares and dispatches platform operations, then returns normalized results. The major workflows include cross-posting and media, fetching posts and comments, batch replies, Meta ad creation, and post deletion. Platform adapters make the external API calls, with shared request/error and retry utilities. Source excerpts are partial, so links for some operations rely on the README and source index rather than inspected call sites.
Main entry points: client.ts Posting Client · meta.ts Facebook Adapter · linkedin.ts LinkedIn Adapter · request.ts HTTP and Errors
Components 21
Public API
- Package Exports
src/index.ts
Client Workflows
- Posting Client
src/client.ts - Cross-posting
src/client.ts - Posts and Comments
src/client.ts - Batch Replies
src/client.ts - Meta Ads
src/client.ts - Post Deletion
src/client.ts
Platform Adapters
- Facebook Adapter
src/platforms/meta.ts - Instagram Adapter
src/platforms/instagram.ts - LinkedIn Adapter
src/platforms/linkedin.ts - Threads Adapter
src/platforms/threads.ts - WhatsApp Adapter
src/platforms/whatsapp.ts
Shared Runtime
- HTTP and Errors
src/lib/request.ts - Content Utilities
src/utils.ts - API Types
src/types.ts
Other components
- Library Consumer
- Meta Graph API
- Instagram Graph API
- LinkedIn API
- Threads API
- WhatsApp API
Connections 35
- Library Consumer → Package Exports: imports
README.md - Package Exports → Posting Client: exports
src/index.ts - Posting Client → Cross-posting: provides
README.md - Posting Client → Posts and Comments: provides
README.md - Posting Client → Batch Replies: provides
README.md - Posting Client → Meta Ads: provides
README.md - Posting Client → Post Deletion: provides
README.md - Cross-posting → Facebook Adapter: dispatches
src/client.ts - Cross-posting → Instagram Adapter: dispatches
src/client.ts - Cross-posting → LinkedIn Adapter: dispatches
README.md - Cross-posting → Threads Adapter: dispatches
src/client.ts - Cross-posting → WhatsApp Adapter: dispatches
README.md - Posts and Comments → Facebook Adapter: fetches
src/client.ts - Posts and Comments → LinkedIn Adapter: fetches
src/client.ts - Batch Replies → Facebook Adapter: dispatches
src/client.ts - Batch Replies → Instagram Adapter: dispatches
src/client.ts - Batch Replies → LinkedIn Adapter: dispatches
README.md - Batch Replies → Threads Adapter: dispatches
README.md - Meta Ads → Facebook Adapter: creates ads
src/client.ts - Post Deletion → Facebook Adapter: deletes posts
README.md - Post Deletion → LinkedIn Adapter: deletes posts
README.md - Post Deletion → Threads Adapter: deletes posts
README.md - Facebook Adapter → HTTP and Errors: uses
src/platforms/meta.ts - Instagram Adapter → HTTP and Errors: uses
src/platforms/instagram.ts - LinkedIn Adapter → HTTP and Errors: uses
src/platforms/linkedin.ts - Threads Adapter → HTTP and Errors: uses
src/platforms/threads.ts - WhatsApp Adapter → HTTP and Errors: uses
src/platforms/whatsapp.ts - Posting Client → HTTP and Errors: retries via
src/client.ts - Posting Client → Content Utilities: uses
src/client.ts - Posting Client → API Types: uses
src/client.ts - Facebook Adapter → Meta Graph API: HTTP requests
src/platforms/meta.ts - Instagram Adapter → Instagram Graph API: HTTP requests
src/platforms/instagram.ts - LinkedIn Adapter → LinkedIn API: HTTP requests
src/platforms/linkedin.ts - Threads Adapter → Threads API: HTTP requests
src/platforms/threads.ts - WhatsApp Adapter → WhatsApp API: HTTP requests
src/platforms/whatsapp.ts