闲社服务运行正常AI智能体自动化平台
m

Meta营销CLI

技能标识:meta

Meta Marketing CLI for authentication lifecycle, Graph API requests, campaign/ad/adset writes, insights reporting, and Instagram publishing. Use when handling Meta ads or Instagram operations from terminal commands with strict fail-closed behavior.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Meta营销CLI

meta

使用 meta 进行 Meta 营销 API 和 Instagram 工作流操作。
故障关闭:如果缺少必需的输入或任何命令失败,立即停止并显示错误。

安装

  • - go install github.com/bilalbayram/metacli/cmd/meta@latest
  • meta --help

需要人工操作的认证引导(必须首先执行)

  • - 人工创建 Meta 应用并提供 APPID 和 APPSECRET。
  • 人工在 Meta 开发者设置中配置 OAuth 重定向白名单,使用精确的 REDIRECT_URI。
  • 重定向必须解析到 AI 主机回调端点。对于本地 AI 主机:

- cloudflared tunnel --url http://127.0.0.1:53682(或类似方式,必须为 HTTPS)
- 设置 REDIRECT_URI=https://<隧道域名>/oauth/callback
  • - AI 运行设置时不自动打开本地浏览器:

- meta auth setup --profile --app-id ID> --app-secret SECRET> --redirect-uri URI> --mode both --scope-pack solosmb --listen 127.0.0.1:53682 --timeout 180s --open-browser=false
  • - 人工在自己机器上打开返回的 auth_url,登录并授予权限。
  • OAuth 重定向到达 AI 主机,令牌交换在此完成。
  • 立即验证:

- meta auth validate --profile --min-ttl 72h

常用命令

  • - 架构同步(建议在写入前执行):meta schema sync --schema-dir ~/.meta/schema-packs
  • 账户列表:meta --profile insights accounts list --active-only --output table
  • Graph 读取:meta --profile api get actACCOUNTID>/campaigns --fields id,name,status --limit 100 --follow-next
  • 广告系列试运行:meta --profile campaign create --account-id ACCOUNTID> --params name=,objective=OUTCOMESALES,status=PAUSED --schema-dir ~/.meta/schema-packs --dry-run
  • 创建广告系列:meta --profile campaign create --account-id ACCOUNTID> --params name=,objective=OUTCOMESALES,status=PAUSED --schema-dir ~/.meta/schema-packs
  • 更新广告系列预算:meta --profile campaign update --campaign-id ID> --params dailybudget=INMINORUNITS> --confirm-budget-change
  • 运行洞察分析:meta --profile insights run --account-id ACCOUNTID> --date-preset last7d --level campaign --metric-pack quality --format jsonl
  • IG 发布动态:meta --profile ig publish feed --media-url MEDIAURL> --caption --idempotency-key KEY>

规则

  • - 切勿编造 ID、配置文件名称、路径、重定向 URI 或负载字段。
  • 在更改预算的变更操作前需要明确确认。
  • 自动化操作优先使用机器可读输出(--output json 或 --format jsonl)。
  • 在回显命令/结果时对机密信息(APP_SECRET、访问令牌)进行脱敏处理。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 metacli-1776297204 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 metacli-1776297204 技能

通过命令行安装

skillhub install metacli-1776297204

下载

⬇ 下载 meta v1.0.0(免费)

文件大小: 2.08 KB | 发布时间: 2026-4-16 18:22

v1.0.0 最新 2026-4-16 18:22
Initial release of metacli – the Meta Marketing CLI.

- Provides CLI access for Meta ads, Graph API, insights, and Instagram publishing.
- Implements strict fail-closed behavior: stops on missing inputs or command failures.
- Supports secure, human-involved OAuth authentication flow.
- Includes commands for schema sync, account/campaign management, and reporting.
- Enforces rules for safety (no ID invention, confirmation on budget edits, and redaction of secrets).
- Recommended for integrating Meta ads workflows with automation from the terminal.