meta-business
Skill for the Meta Business CLI. Complete WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. Supports messaging, media, templates, analytics, webhooks, and systemd service management.
Best use case
meta-business is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Skill for the Meta Business CLI. Complete WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. Supports messaging, media, templates, analytics, webhooks, and systemd service management.
Teams using meta-business should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/meta-business/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How meta-business Compares
| Feature / Agent | meta-business | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Skill for the Meta Business CLI. Complete WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. Supports messaging, media, templates, analytics, webhooks, and systemd service management.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
Best AI Agents for Marketing
A curated list of the best AI agents and skills for marketing teams focused on SEO, content systems, outreach, and campaign execution.
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
SKILL.md Source
# Meta Business CLI Use `meta` for WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. ## Setup ```bash # 1. Configure app credentials meta config set app.id YOUR_APP_ID meta config set app.secret YOUR_APP_SECRET # 2. Authenticate (OAuth PKCE, opens browser) meta auth login # 3. Configure WhatsApp (from API Setup page) meta config set whatsapp.phoneNumberId YOUR_PHONE_NUMBER_ID meta config set whatsapp.businessAccountId YOUR_WABA_ID # 4. Verify everything works meta doctor ``` Or use `--token YOUR_TOKEN` with any command to skip OAuth (e.g. System User tokens). ## Authentication ```bash meta auth login # OAuth PKCE flow (opens browser) meta auth login --token YOUR_ACCESS_TOKEN # Use existing token meta auth login --scopes "whatsapp_business_messaging,instagram_basic,pages_show_list" meta auth status # Show token validity and scopes meta auth logout # Remove stored credentials ``` ## Configuration ```bash meta config set app.id YOUR_APP_ID # App ID (numeric) meta config set app.secret YOUR_APP_SECRET # App secret meta config set whatsapp.phoneNumberId ID # WhatsApp phone number ID meta config set whatsapp.businessAccountId ID # WhatsApp business account ID meta config set instagram.accountId ID # Instagram account ID meta config set pages.pageId ID # Facebook Page ID meta config set webhook.forwardUrl URL # Forward inbound messages to URL meta config get <key> # Get a config value meta config list # Show all config values ``` Config stored at `~/.meta-cli/config.json`. ## WhatsApp ### Sending Messages ```bash # Text meta wa send "+1234567890" --text "Hello" --json # Markdown (converts to WhatsApp formatting) meta wa send "+1234567890" --text "**bold** and _italic_" --markdown --json # Chunked (splits long text into multiple messages) meta wa send "+1234567890" --text "very long message..." --chunk --json # Image meta wa send "+1234567890" --image "https://example.com/photo.jpg" --caption "Look" --json # Video meta wa send "+1234567890" --video "https://example.com/video.mp4" --caption "Watch" --json # Document meta wa send "+1234567890" --document "https://example.com/file.pdf" --json # Local file (auto-uploads) meta wa send "+1234567890" --document ./report.pdf --caption "Q4 report" --json # Audio meta wa send "+1234567890" --audio "https://example.com/note.ogg" --json # Voice note (renders as playable voice note, requires OGG/Opus) meta wa send "+1234567890" --audio "./recording.ogg" --voice --json # Template meta wa send "+1234567890" --template "hello_world" --template-lang en_US --json # Mark as read meta wa read WAMID --json ``` ### Media File Size Limits | Type | Max Size | |------|----------| | Image | 5 MB | | Video | 16 MB | | Document | 100 MB | ### Templates ```bash meta wa template list --json # List all templates meta wa template get TEMPLATE_NAME --json # Get template details meta wa template delete TEMPLATE_NAME --json # Delete template ``` ### Media ```bash meta wa media upload ./photo.jpg --json # Upload media meta wa media url MEDIA_ID --json # Get media URL meta wa media download MEDIA_ID ./output.jpg # Download media ``` ### Analytics ```bash meta wa analytics --days 30 --granularity DAY --json ``` ### Phone Number Management ```bash meta wa phone list --json # List numbers meta wa phone get --json # Get active number details meta wa phone select PHONE_NUMBER_ID # Select active number ``` ### Allowlist (Prompt Injection Protection) ```bash meta wa allowlist list # List allowed numbers meta wa allowlist add "+1234567890" # Add number meta wa allowlist remove "+1234567890" # Remove number ``` When the allowlist is non-empty, `meta wa send` only delivers to listed numbers. ## Instagram ```bash # Publish image meta ig publish --image "https://example.com/photo.jpg" --caption "My post" --json # Publish video meta ig publish --video "https://example.com/video.mp4" --caption "Watch this" --json # Publish Reel meta ig publish --video "https://example.com/reel.mp4" --reel --caption "New reel" --json # Account insights meta ig insights --period day --days 30 --json # Media insights meta ig insights --media-id MEDIA_ID --json # Comments meta ig comments list MEDIA_ID --json # List comments meta ig comments reply COMMENT_ID "Thanks!" --json # Reply meta ig comments hide COMMENT_ID --json # Hide meta ig comments delete COMMENT_ID --json # Delete ``` Instagram publish requires a public URL for images/videos (not local files). ## Facebook Pages ```bash meta fb post --message "Hello from the CLI" --json # Create post meta fb post --message "Check this" --link "https://example.com" --json # Link post meta fb list --limit 10 --json # List posts meta fb insights --period day --days 30 --json # View insights ``` ## Messenger ```bash meta messenger send PSID --text "Hello" --json # Send text meta messenger send PSID --image "https://example.com/photo.jpg" --json # Send image meta messenger send PSID --text "Update" --type MESSAGE_TAG --tag HUMAN_AGENT --json # Outside 24h window meta messenger receive --json # List conversations meta messenger receive --conversation-id CONV_ID --json # View conversation ``` Messenger messaging outside the 24h window requires a message tag. ## Webhooks ```bash # Start listener meta webhook listen --port 3000 --verify-token TOKEN --app-secret SECRET # Test verification locally meta webhook verify --verify-token TOKEN --json # Subscribe to events meta webhook subscribe \ --object whatsapp_business_account \ --fields messages \ --callback-url "https://example.com/webhook" --json ``` Set `webhook.forwardUrl` in config to POST inbound messages to an external service. The webhook auto-sends read receipts and acknowledges reactions for inbound messages. ## Webhook Service (systemd) ```bash meta service install # Install systemd user service meta service start # Start the webhook service meta service stop # Stop the service meta service restart # Restart the service meta service status # Show service status meta service logs # Show service logs meta service uninstall # Remove systemd service ``` ## Shell Completion ```bash # Bash meta completion >> ~/.bashrc # Zsh (add to .zshrc) meta completion >> ~/.zshrc ``` ## Diagnostics ```bash meta doctor --json ``` Checks config, credentials, token validity, Graph API connectivity, permissions, and surface-specific asset access. Run before first use. ## Global Flags | Flag | Description | |------|-------------| | `--json` | Structured output for scripting and agent use | | `--verbose` | Print debug logs to stderr | | `--token TOKEN` | Override stored credentials | | `--api-version v22.0` | Pin a specific Graph API version | ## Notes - Always use `--json` for structured output when automating. - All commands work non-interactively when required args are passed as flags. - Voice notes require OGG/Opus format to render correctly in WhatsApp. - Files exceeding size limits are rejected with an actionable error. - For larger files, host at a URL and pass the URL directly.
Related Skills
Plumbing Business Operations
<version>1.0.0</version>
HVAC Business Operations
Complete operations reference for HVAC contractors and service companies. Covers residential and commercial pricing, technician productivity, seasonal planning, equipment margins, EPA compliance, and growth strategy.
Home Inspection Business Operations
Run a profitable home inspection business with real numbers, compliance checklists, and growth playbooks.
Food Truck Business Operations
Complete operational playbook for launching and scaling a food truck business. Covers menu engineering, pricing, permits, commissary kitchens, route planning, event booking, and growth from 1 truck to a fleet.
Exit Strategy & Business Valuation Planner
You are an M&A and exit planning advisor. Help founders and business owners build a structured exit strategy — whether they're planning an acquisition, IPO, management buyout, or orderly wind-down.
Cleaning Business Operations
Commercial and residential cleaning business operations agent. Covers pricing, bidding, staffing, supply costs, insurance, OSHA compliance, quality control, and growth from solo operator to multi-crew company.
Business Continuity Planner
Build a complete Business Continuity Plan (BCP) and Disaster Recovery (DR) strategy for any organization.
afrexai-business-automation
Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.
Business Automation Strategy — AfrexAI
> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
metacognitive-self-mod
Analyze and improve the improvement process. Use for detecting quality regressions and refining meta-optimization
Freelancer Business Autopilot Lite
Free version — generate invoices and weekly client updates from plain-language descriptions.
meta-ad-spy
Competitive intelligence skill for spying on competitor ads using Meta's Ad Library. Use this skill whenever the user wants to: research competitor Facebook/Instagram ads, analyze ad strategies, extract ad creatives or copy, find how long ads have been running, scout ad spend patterns, monitor industry advertising trends, or build any kind of competitor ad intelligence report. Triggers on phrases like "check competitor ads", "what ads is [brand] running", "spy on ads", "Facebook ad library", "Meta ad library", "scrape ads", "monitor ads", "ad intelligence", "ad research", or any request to analyze advertising strategies on Meta platforms. Always use this skill even if the user just mentions they want to understand what a competitor is doing on Facebook or Instagram.