@claw-link/meta-sm-manager
v1.3.3
Published
Meta social media manager sub-agent for the ClawLink platform — manages Instagram, Facebook, and Threads posts, comments, content, and pages via Graph API.
Maintainers
Readme
@claw-link/meta-sm-manager
Meta Social Media Manager sub-agent for the ClawLink platform.
Manages Instagram, Facebook, and Threads via the Meta Graph API — post publishing, comment auto-replies, and AI-generated content. Runs as an OpenClaw sub-agent on your local machine.
How it works
Meta (comment / DM)
↓
ClawLink meta-webhook edge function
↓ enriches event, calls this agent via OpenClaw
meta-sm-manager (local OpenClaw agent)
↓ returns JSON decision
Edge function executes Graph API action (reply / hide / delete)This package handles the AI decision-making and direct posting. ClawLink platform handles webhook routing, signature verification, and inbound event delivery — no Supabase credentials needed here.
Features
- Comment auto-reply — receives enriched prompts from ClawLink, decides: reply / hide / delete / ignore / escalate
- Post publishing — create and publish posts directly via Graph API
- AI content generation — captions, hashtags, reply text using the OpenClaw-configured model
- Page memory — per-page brand voice, blocked keywords, and custom rules stored in the workspace
- Multi-page — manage multiple Facebook / Instagram / Threads pages from one agent
Requirements
- OpenClaw installed and running
- Node.js ≥ 20
- A ClawLink account
- A Meta Developer App with Webhooks + Graph API enabled
Install
npx @claw-link/meta-sm-managerThe interactive installer prompts for:
| Prompt | Where to find it |
|--------|-----------------|
| Meta App ID | developers.facebook.com/apps → your app → Settings → Basic |
| Meta App Secret | Same page → click Show next to App Secret |
| Page ID | Facebook: your Page → About → Page Transparency. Instagram: query /{fb-page-id}?fields=instagram_business_account |
| Page Access Token | Graph API Explorer → select your app → Generate Token → exchange via GET /me/accounts |
The installer writes credentials to ~/.openclaw/workspace-{agentId}/CONFIG.json and registers the agent with OpenClaw.
To uninstall:
npx @claw-link/meta-sm-manager --uninstallSetup after install
1. Platform setup (ClawLink dashboard, done once)
The ClawLink platform handles webhook receiving and signature verification. Set this up in the dashboard:
- Go to claw-link.co → Company Profile → Social Media
- Copy your Webhook URL and Verify Token from there
- Enter your Meta App ID + Secret to enable signature verification
2. Register the webhook with Meta
In Meta App Dashboard → Webhooks:
- Callback URL: copy from ClawLink dashboard (Company Profile → Social Media)
- Verify Token: copy from ClawLink dashboard
- Subscribe to:
feed,comments,mention,messages
3. Connect to ClawLink
Go to claw-link.co → Sub-agents → Add Sub-agent → select the agent ID you used during install.
Usage (sub-agent tasks)
Send tasks from a parent ClawLink agent:
{ "action": "create_post", "page_id": "123", "content_text": "Hello world!", "platform": "facebook" }
{ "action": "generate_content", "page_id": "123", "topic": "summer sale", "platform": "instagram", "tone": "friendly" }
{ "action": "reply_comment", "comment_id": "456_789", "page_id": "123", "reply_text": "Thanks!" }
{ "action": "get_insights", "page_id": "123" }All actions return structured JSON — see AGENTS.md in the workspace for the full action reference.
Workspace
~/.openclaw/workspace-{agentId}/
├── CONFIG.json ← Meta App credentials + page tokens (keep private)
├── IDENTITY.md ← agent identity
├── BOOTSTRAP.md ← startup instructions
├── AGENTS.md ← decision formats and sub-agent task reference
├── TOOLS.md ← decision rules and content generation prompts
├── PAGES.md ← connected pages reference
├── PERSONA.md ← default brand voice and classification rules
├── CONTENT_GUIDE.md ← content creation workflow
├── memory/ ← per-page brand voice profiles (auto-created)
└── content/
├── drafts/ ← AI-generated drafts
├── media/ ← images and videos
└── published/ ← publish logLicense
MIT — ClawLink
