← 返回
安全合规 Key 中文

metacli

Meta Marketing CLI for authentication lifecycle, Graph API requests, campaign/ad/adset writes, insights reporting, and Instagram publishing. Use when handlin...
Meta营销CLI,支持认证生命周期、Graph API请求、营销活动/广告/广告组写入、洞察报告及Instagram发布。适用于处理...
bilalbayram
安全合规 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 803
下载
💾 10
安装
1
版本
#latest

概述

meta

Use meta for Meta Marketing API and Instagram workflows.

Fail closed: if required inputs are missing or any command fails, stop immediately and surface the error.

Install

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

Human-required auth bootstrap (must happen first)

  • Human creates a Meta app and provides APP_ID and APP_SECRET.
  • Human configures OAuth redirect allowlist in Meta Developer settings with the exact REDIRECT_URI.
  • Redirect must resolve to the AI host callback endpoint. For a local AI host:
  • cloudflared tunnel --url http://127.0.0.1:53682 (or similar, it must be HTTPS)
  • Set REDIRECT_URI=https:///oauth/callback
  • AI runs setup without auto-opening a local browser:
  • meta auth setup --profile --app-id --app-secret --redirect-uri --mode both --scope-pack solo_smb --listen 127.0.0.1:53682 --timeout 180s --open-browser=false
  • Human opens returned auth_url on their own machine, logs in, and grants consent.
  • OAuth redirect lands on the AI host and token exchange completes there.
  • Validate immediately:
  • meta auth validate --profile --min-ttl 72h

Common commands

  • Schema sync (recommended before writes): meta schema sync --schema-dir ~/.meta/schema-packs
  • Accounts list: meta --profile insights accounts list --active-only --output table
  • Graph read: meta --profile api get act_/campaigns --fields id,name,status --limit 100 --follow-next
  • Campaign dry-run: meta --profile campaign create --account-id --params "name=,objective=OUTCOME_SALES,status=PAUSED" --schema-dir ~/.meta/schema-packs --dry-run
  • Campaign create: meta --profile campaign create --account-id --params "name=,objective=OUTCOME_SALES,status=PAUSED" --schema-dir ~/.meta/schema-packs
  • Campaign budget update: meta --profile campaign update --campaign-id --params "daily_budget=" --confirm-budget-change
  • Insights run: meta --profile insights run --account-id --date-preset last_7d --level campaign --metric-pack quality --format jsonl
  • IG publish feed: meta --profile ig publish feed --media-url --caption "" --idempotency-key

Rules

  • Never invent IDs, profile names, paths, redirect URIs, or payload fields.
  • Require explicit confirmation before budget-changing mutations.
  • Prefer machine-readable output (--output json or --format jsonl) for automation.
  • Redact secrets (APP_SECRET, access tokens) when echoing commands/results.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,590
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,701
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,137