# Send Facebook Page Manager 1.0.0 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "facebook-page-manager-1-0-0",
    "name": "Facebook Page Manager 1.0.0",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Loui1979/facebook-page-manager-1-0-0",
    "canonicalUrl": "https://clawhub.ai/Loui1979/facebook-page-manager-1-0-0",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/facebook-page-manager-1-0-0",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=facebook-page-manager-1-0-0",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "env_example.md",
      "references/graph-api.md",
      "scripts/auth.js",
      "scripts/cli.js",
      "scripts/fb_post.js",
      "scripts/package-lock.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/facebook-page-manager-1-0-0"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/facebook-page-manager-1-0-0",
    "downloadUrl": "https://openagent3.xyz/downloads/facebook-page-manager-1-0-0",
    "agentUrl": "https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent",
    "manifestUrl": "https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent.md"
  }
}
```
## Documentation

### Facebook Page

Skill để quản lý Facebook Page qua Meta Graph API.

### Chức năng

List các Page mà user quản lý
Đăng bài (text, ảnh, link)
List bài đăng của Page
List/reply/hide/delete comment

### 1. Tạo Meta App

Vào https://developers.facebook.com/apps/ → Create App
Chọn "Other" → "Business" (hoặc Consumer tuỳ use-case)
Điền tên app, email
Vào App settings > Basic: lấy App ID và App Secret

### 2. Cấu hình OAuth

Vào Add Product → thêm Facebook Login
Trong Facebook Login > Settings:

Valid OAuth Redirect URIs: để trống (dùng manual code flow)


Vào App Roles > Roles → thêm account làm Admin/Developer

### 3. Cấu hình .env

cd skills/facebook-page
cp .env.example .env
# Edit .env với App ID và Secret

### 4. Cài dependencies và lấy token

cd scripts
npm install
node auth.js login

Script sẽ:

In ra URL để user mở browser, đăng nhập, approve permissions
User copy URL sau khi approve (chứa code=...)
Paste URL vào terminal
Script exchange code → long-lived token → page tokens
Lưu tokens vào ~/.config/fbpage/tokens.json

### List pages

node cli.js pages

### Đăng bài text

node cli.js post create --page PAGE_ID --message "Hello world"

### Đăng bài có ảnh

node cli.js post create --page PAGE_ID --message "Caption" --photo /path/to/image.jpg

### Đăng bài có link

node cli.js post create --page PAGE_ID --message "Check this out" --link "https://example.com"

### List posts

node cli.js post list --page PAGE_ID --limit 10

### List comments của post

node cli.js comments list --post POST_ID

### Reply comment

node cli.js comments reply --comment COMMENT_ID --message "Thanks!"

### Hide comment

node cli.js comments hide --comment COMMENT_ID

### Delete comment

node cli.js comments delete --comment COMMENT_ID

### Permissions cần thiết

pages_show_list - list pages
pages_read_engagement - đọc posts/comments
pages_manage_posts - đăng/sửa/xoá bài
pages_manage_engagement - quản lý comments

### Lưu ý

Token Page không hết hạn (nếu lấy từ long-lived user token)
Không log/print token ra output
App ở Testing mode chỉ hoạt động với accounts trong Roles
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Loui1979
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/facebook-page-manager-1-0-0)
- [Send to Agent page](https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent)
- [JSON manifest](https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/facebook-page-manager-1-0-0/agent.md)
- [Download page](https://openagent3.xyz/downloads/facebook-page-manager-1-0-0)