返回顶部
m

metaMeta营销CLI

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
安全检测
已通过
405
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

meta

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.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large