social-fb-publisher-v1

Publisher for posting Facebook videos via Graph API v25.0: uploads vetted videos to a Facebook public Page using multipart/form-data, supports three automatic retries with exponential backoff and falls back to posting a plain-text /feed post on persistent failure, requires interactive setup of Page ID and access token on first use, and is intended for posting videos, checking status, or handling Facebook API uploads.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "social-fb-publisher-v1" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1aff06167cde057b301b940308a2dfdb71ca31191aeb0f8d351d050fa01ba712. Verify the upstream source and version against https://skillhub.cn/skills/user_a751d310/fb-ig-publisher before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Publisher for posting Facebook videos via Graph API v25.0: uploads vetted videos to a Facebook public Page using multipart/form-data, supports three automatic retries with exponential backoff and falls back to posting a plain-text /feed post on persistent failure, requires interactive setup of Page ID and access token on first use, and is intended for posting videos, checking status, or handling Facebook API uploads.

0 Downloads

Introduction source: third_party · user_a751d310 · 1.0.0 Reference

SkillPi interpretation

Tasks
Facebook video publishing via Graph API v25.0. Uploads approved videos to a Facebook Page using multipart/form-data. Supports 3 automatic retries with exponential backoff, and automatic fallback to /feed endpoint for text-only posts on persistent failure. Requires user to configure FB Page ID and Access Token via interactive setup on first use. Use when publishing videos to Facebook, checking status, or handling FB API uploads.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: social-fb-publisher-v1
description: "Facebook video publishing via Graph API v25.0. Uploads approved videos to a Facebook Page using multipart/form-data. Supports 3 automatic retries with exponential backoff, and automatic fallback to /feed endpoint for text-only posts on persistent failure. Requires user to configure FB Page ID and Access Token via interactive setup on first use. Use when publishing videos to Facebook, checking status, or handling FB API uploads."
agent_created: true

Social FB Publisher v1 — Facebook Graph API 视频发布

Purpose

通过 Facebook Graph API v25.0 将已审核的视频发布到 Facebook Page。 支持 multipart/form-data 视频上传、自动重试、以及失败时降级为纯文字帖子。

When to Use

  • 将已审核视频发布到 Facebook
  • 查看待发布视频状态
  • 用户说: "发FB"、"发Facebook"、"发布到Facebook"、"post to FB"

⚠️ 首次使用必须交互(强制)

该技能不可在未配置凭据的情况下直接使用。WorkBuddy 在加载技能后, 必须按以下流程与用户交互:

Step 1: 检查凭据状态

python scripts/run.py config

如果输出中 configured: false,则进入 Step 2。

Step 2: 向用户索要凭据

WorkBuddy 必须向用户询问:

  • Facebook Page ID(数字 ID,如 602278536304028)
  • Facebook Page Access Token(以 EAA 开头的长字符串)

引导话术:

要使用 FB 发布功能,需要你的 Facebook Page ID 和 Access Token。 获取方式:

  1. 前往 https://developers.facebook.com/tools/explorer/
  2. 选择你的 App 和 Page
  3. 生成 Page Access Token(确保权限: pages_manage_posts, pages_read_engagement)
  4. 将 Page ID 和 Token 粘贴给我

Step 3: 验证并保存凭据

python scripts/run.py setup --page-id <用户提供的PageID> --access-token <用户提供的Token>

凭据会保存到 ~/.workbuddy/fb_credentials.yaml(用户级别,跨项目通用)。


Commands

config — 查看凭据状态

python scripts/run.py config          # 概览(token 脱敏)
python scripts/run.py config --reveal # 完整查看(⚠️ 勿分享)

setup — 配置凭据

python scripts/run.py setup --page-id <PageID> --access-token <Token>

执行后会先验证凭据有效性,验证通过才保存。

status — 查看待发布视频

python scripts/run.py status

列出 03_Approved/ 下所有可发布的视频文件夹。

publish — 发布视频

python scripts/run.py publish --folder "03_Approved/video_name"
python scripts/run.py publish --folder "E:/path/to/video_folder"

凭据来源优先级

脚本按以下顺序查找凭据(找到即停):

优先级 来源 说明
1 环境变量 FB_PAGE_ID / FB_PAGE_ACCESS_TOKEN CI/CD 或临时使用
2 ~/.workbuddy/fb_credentials.yaml setup 命令保存的全局配置
3 <cwd>/_assets/fb_credentials.yaml 项目本地配置(向后兼容)

Publishing Flow

  1. Validate: 检查视频文件存在且符合 FB 要求(≤500MB)
  2. Upload: 通过 multipart/form-data POST 到 /{page-id}/videos
  3. Attach Caption: 从 caption.json 读取文案
  4. Retry: 最多 3 次重试,指数退避(可重试错误码: 390, 1363030)
  5. Fallback: 连续 3 次失败后,自动降级到 /{page-id}/feed 发布纯文字帖

Directory Structure(建议的项目目录结构)

your_project/
├── 03_Approved/
│   └── video_name/
│       ├── clip_v1.mp4       # 视频文件
│       ├── caption.json      # 文案(含变体信息)
│       └── ...
├── 04_ReadyToUpload/         # 发布记录(自动创建)
└── _assets/
    └── fb_credentials.yaml   # (可选)项目本地凭据

Output

成功发布后输出:

  • video_id: Facebook 视频 ID
  • post_id: Facebook 帖子 ID
  • permalink: 发布帖子链接

失败时输出:

  • 错误码和消息
  • 重试次数
  • 是否使用了 /feed 降级

依赖

  • Python 3.8+
  • requests 库: pip install requests

无其他核心模块依赖,可独立运行。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 直接解决用户明确的核心任务痛点:Facebook视频发布自动化
  • 支持自动重试和失败降级机制,提升发布成功率
  • 提供完整的凭证配置流程和状态检查功能
Trigger Precision85/100

Highlights

  • 触发词覆盖合理,包含多种变体如'发FB'、'发Facebook'等
  • 边界清晰,不易与其他Skill重叠
Structure and Standards80/100

Highlights

  • Phase/步骤清晰,有出口条件
  • 含端到端示例,frontmatter完整
  • 目录结构建议清晰,便于用户理解
Execution Reliability75/100

Areas to improve

  • 凭证安全说明不足 Reported severity: Minor

    虽然提到了凭证脱敏和勿分享,但对凭证泄露风险的详细说明不足

    Recommendation: 建议增加关于凭证安全存储和使用的详细说明,提醒用户注意保护敏感信息

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
  • 支持自动重试和失败降级机制
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • developers.facebook.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.