{
  "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": {
    "downloadMode": "redirect",
    "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",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "env_example.md",
      "references/graph-api.md",
      "scripts/auth.js",
      "scripts/cli.js",
      "scripts/fb_post.js",
      "scripts/package-lock.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/facebook-page-manager-1-0-0",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Facebook Page",
        "body": "Skill để quản lý Facebook Page qua Meta Graph API."
      },
      {
        "title": "Chức năng",
        "body": "List các Page mà user quản lý\nĐăng bài (text, ảnh, link)\nList bài đăng của Page\nList/reply/hide/delete comment"
      },
      {
        "title": "1. Tạo Meta App",
        "body": "Vào https://developers.facebook.com/apps/ → Create App\nChọn \"Other\" → \"Business\" (hoặc Consumer tuỳ use-case)\nĐiền tên app, email\nVào App settings > Basic: lấy App ID và App Secret"
      },
      {
        "title": "2. Cấu hình OAuth",
        "body": "Vào Add Product → thêm Facebook Login\nTrong Facebook Login > Settings:\n\nValid OAuth Redirect URIs: để trống (dùng manual code flow)\n\n\nVào App Roles > Roles → thêm account làm Admin/Developer"
      },
      {
        "title": "3. Cấu hình .env",
        "body": "cd skills/facebook-page\ncp .env.example .env\n# Edit .env với App ID và Secret"
      },
      {
        "title": "4. Cài dependencies và lấy token",
        "body": "cd scripts\nnpm install\nnode auth.js login\n\nScript sẽ:\n\nIn ra URL để user mở browser, đăng nhập, approve permissions\nUser copy URL sau khi approve (chứa code=...)\nPaste URL vào terminal\nScript exchange code → long-lived token → page tokens\nLưu tokens vào ~/.config/fbpage/tokens.json"
      },
      {
        "title": "List pages",
        "body": "node cli.js pages"
      },
      {
        "title": "Đăng bài text",
        "body": "node cli.js post create --page PAGE_ID --message \"Hello world\""
      },
      {
        "title": "Đăng bài có ảnh",
        "body": "node cli.js post create --page PAGE_ID --message \"Caption\" --photo /path/to/image.jpg"
      },
      {
        "title": "Đăng bài có link",
        "body": "node cli.js post create --page PAGE_ID --message \"Check this out\" --link \"https://example.com\""
      },
      {
        "title": "List posts",
        "body": "node cli.js post list --page PAGE_ID --limit 10"
      },
      {
        "title": "List comments của post",
        "body": "node cli.js comments list --post POST_ID"
      },
      {
        "title": "Reply comment",
        "body": "node cli.js comments reply --comment COMMENT_ID --message \"Thanks!\""
      },
      {
        "title": "Hide comment",
        "body": "node cli.js comments hide --comment COMMENT_ID"
      },
      {
        "title": "Delete comment",
        "body": "node cli.js comments delete --comment COMMENT_ID"
      },
      {
        "title": "Permissions cần thiết",
        "body": "pages_show_list - list pages\npages_read_engagement - đọc posts/comments\npages_manage_posts - đăng/sửa/xoá bài\npages_manage_engagement - quản lý comments"
      },
      {
        "title": "Lưu ý",
        "body": "Token Page không hết hạn (nếu lấy từ long-lived user token)\nKhông log/print token ra output\nApp ở Testing mode chỉ hoạt động với accounts trong Roles"
      }
    ],
    "body": "Facebook Page\n\nSkill để quản lý Facebook Page qua Meta Graph API.\n\nChức năng\nList các Page mà user quản lý\nĐăng bài (text, ảnh, link)\nList bài đăng của Page\nList/reply/hide/delete comment\nSetup (một lần)\n1. Tạo Meta App\nVào https://developers.facebook.com/apps/ → Create App\nChọn \"Other\" → \"Business\" (hoặc Consumer tuỳ use-case)\nĐiền tên app, email\nVào App settings > Basic: lấy App ID và App Secret\n2. Cấu hình OAuth\nVào Add Product → thêm Facebook Login\nTrong Facebook Login > Settings:\nValid OAuth Redirect URIs: để trống (dùng manual code flow)\nVào App Roles > Roles → thêm account làm Admin/Developer\n3. Cấu hình .env\ncd skills/facebook-page\ncp .env.example .env\n# Edit .env với App ID và Secret\n\n4. Cài dependencies và lấy token\ncd scripts\nnpm install\nnode auth.js login\n\n\nScript sẽ:\n\nIn ra URL để user mở browser, đăng nhập, approve permissions\nUser copy URL sau khi approve (chứa code=...)\nPaste URL vào terminal\nScript exchange code → long-lived token → page tokens\nLưu tokens vào ~/.config/fbpage/tokens.json\nCommands\nList pages\nnode cli.js pages\n\nĐăng bài text\nnode cli.js post create --page PAGE_ID --message \"Hello world\"\n\nĐăng bài có ảnh\nnode cli.js post create --page PAGE_ID --message \"Caption\" --photo /path/to/image.jpg\n\nĐăng bài có link\nnode cli.js post create --page PAGE_ID --message \"Check this out\" --link \"https://example.com\"\n\nList posts\nnode cli.js post list --page PAGE_ID --limit 10\n\nList comments của post\nnode cli.js comments list --post POST_ID\n\nReply comment\nnode cli.js comments reply --comment COMMENT_ID --message \"Thanks!\"\n\nHide comment\nnode cli.js comments hide --comment COMMENT_ID\n\nDelete comment\nnode cli.js comments delete --comment COMMENT_ID\n\nPermissions cần thiết\npages_show_list - list pages\npages_read_engagement - đọc posts/comments\npages_manage_posts - đăng/sửa/xoá bài\npages_manage_engagement - quản lý comments\nLưu ý\nToken Page không hết hạn (nếu lấy từ long-lived user token)\nKhông log/print token ra output\nApp ở Testing mode chỉ hoạt động với accounts trong Roles"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Loui1979/facebook-page-manager-1-0-0",
    "publisherUrl": "https://clawhub.ai/Loui1979/facebook-page-manager-1-0-0",
    "owner": "Loui1979",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}