Skill for the Meta Business CLI. Complete WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. Supports messaging, media, templat...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install meta-business或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install meta-business⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/meta-business/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: meta-business description: "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." version: 1.2.0 author: adolago tags: - whatsapp - instagram - facebook - messenger - meta - cli - automation triggers: - whatsapp - instagram - facebook - messenger - meta - send message metadata: openclaw: requires: bins: [meta] install: - id: bun kind: command command: "bun install -g meta-business-cli" bins: [meta] label: "Install meta CLI (bun)" - id: compile kind: command command: "git clone https://github.com/adolago/meta-cli.git && cd meta-cli && bun install && bun build --compile --outfile ~/.bun/bin/meta src/index.ts" bins: [meta] label: "Build from source (standalone binary)" ---
Use meta for WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API.
# 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).
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
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.
# 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
| Type | Max Size | |------|----------| | Image | 5 MB | | Video | 16 MB | | Document | 100 MB |
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
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
meta wa analytics --days 30 --granularity DAY --json
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
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.
# 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).
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
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.
# 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.
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
# Bash
meta completion >> ~/.bashrc
# Zsh (add to .zshrc)
meta completion >> ~/.zshrc
meta doctor --json
...
安装 Meta Business CLI 后,可以对 AI 说这些话来触发它
Help me get started with Meta Business CLI
Explains what Meta Business CLI does, walks through the setup, and runs a quick demo based on your current project
Use Meta Business CLI to the Meta Business CLI
Invokes Meta Business CLI with the right parameters and returns the result directly in the conversation
What can I do with Meta Business CLI in my marketing & growth workflow?
Lists the top use cases for Meta Business CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/meta-business/ 目录(个人级,所有项目可用),或 .claude/skills/meta-business/(项目级)。重启 AI 客户端后,用 /meta-business 主动调用,或让 AI 根据上下文自动发现并使用。
Meta Business CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Meta Business CLI 可免费安装使用。请查阅仓库了解许可证信息。
Skill for the Meta Business CLI. Complete WhatsApp, Instagram, Facebook Pages, and Messenger automation via the Graph API. Supports messaging, media, templat...
Meta Business CLI 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Meta Business CLI
Identifies repetitive steps in your workflow and sets up Meta Business CLI to handle them automatically