Facebook Posts logo

Facebook Posts

Community
redfox-data
facebook-posts

Facebook 主页帖子批量提取工具。用户只需提供 Facebook 账号主页 URL,即可拉取该主页近期帖子:正文、点赞、评论、图片/视频链接、发布时间、链接与作者信息,支持逐页翻页,表格呈现。适用于竞品账号内容拆解学习、创作者作品存档、素材搬运二次剪辑、自营账号备份、达人合作背调等场景。当用户需要提取、抓取、拉取 Facebook 主页帖子列表时使用。触发词:Facebook帖子、Facebook账号学习、FB主页帖子、脸书帖子提取、facebook posts、FB帖子。

Overview

Publisherredfox-data
Repositoryredfox-community
Skill namefacebook-posts
Stars
449
Forks
59
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by redfox-data on GitHub. Read the source before you install it.

Installation

Install the Facebook Posts AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/redfox-data/redfox-community/tree/main/skills/facebook-posts
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/redfox-data/redfox-community.git /tmp/redfox-community
mkdir -p .claude/skills
cp -r /tmp/redfox-community/skills/facebook-posts .claude/skills/facebook-posts
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Facebook Posts in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Facebook Posts on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Facebook Posts is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Facebook 主页帖子提取

1. 简介

Facebook 主页帖子批量提取工具。用户粘贴主页 URL 即可按发布时间倒序拉取帖子数据(正文、互动量、媒体链接、链接),支持翻页,对话中以 Markdown 表格摘要呈现。

适用对象:内容创作者 / 运营人员、MCN 与达人商务、品牌方 / 市场调研、数据分析师。

2. 核心功能

作品拉取:输入主页 URL 即可获取该主页近期帖子,包含正文、点赞、评论等互动数据与帖子链接。 链接解析:支持 facebook.com/用户名 格式的主页链接,自动提取。 分页浏览:支持翻页查看更多帖子,每页最多50条。 表格呈现:对话中以 Markdown 表格摘要展示帖子数据,方便浏览,JSON 文件保留完整字段与全部媒体链接。

3. 一键安装

获取 API Key

前往 红狐 hub 注册登录并创建 API 密钥。

配置环境变量

bash
export REDFOX_API_KEY="ak_xxxx..."      # Git Bash / Linux / macOS
$env:REDFOX_API_KEY="ak_xxxx..."        # PowerShell

无需第三方依赖,Python 3.7+ 标准库即可运行。

4. 使用指南

基础使用(默认获取 1 页最近帖子)

bash
python scripts/fetch_posts.py --query "用户原话(含主页链接)"
python scripts/fetch_posts.py --url "https://www.facebook.com/Meta"

交互规则:

  • 用户未提供主页 URL 时,先向用户索要链接,不要凭空猜测
  • 默认抓取 1 页(该主页最近的帖子),输出表格后若还有更多数据,询问用户是否继续翻页

翻页

bash
python scripts/fetch_posts.py --url "<主页URL>" --continue

脚本自动读取上次数据文件中的 paginationToken 取下一页,与历史数据按 postId 去重合并后重新落盘。

常用指令速查

用户意图典型触发词对应操作
提取主页帖子抓FB帖子、Facebook帖子列表、脸书主页帖子--url 抓 1 页并表格展示
翻页下一页、继续、更多帖子--continue

5. 输出格式

读取脚本输出的 JSON 数据文件后,按以下模板输出表格:

📄 Facebook 主页帖子 · {作者名}
主页:{url} | 数据时间:{generatedAt}
本页 {fetchedThisRun} 条(累计 {accumulatedTotal} 条)| 还有更多数据:{是/否}

| 序号 | 发布时间 | 文案摘要 | ❤️ 点赞 | 💬 评论 | 媒体 | 帖子链接 |
|:---:|--------|--------|:---:|:---:|--------|--------|
| 1 | 2026-10-18 12:07 | 男友說,我們的小豆樹越長越大… | 3,564 | 77 | 🖼️ 图片×1 | [查看帖子](permalink) |

字段规则:

  • 发布时间:ISO 时间转北京时间(UTC+8),格式 YYYY-MM-DD HH:MM;转换失败时原样展示
  • 文案摘要:caption 换行改为空格,截取前 50 字,超出加 …;空文案显示 —
  • 媒体列:videoUrl 或 videoDuration 有值 → 🎬 视频;mediaUrls 非空 → 🖼️ 图片×N(仅 imageUrl 有值时按 ×1);均无 → —
  • 帖子链接:查看帖子,无 permalink 显示 —
  • 表格列完整输出,不得省略任何列;表格条数与 JSON 数据一致
  • JSON 文件保留全部字段:完整 caption、全部媒体 URL、作者信息、互动数据、分页游标;媒体链接为 fbcdn 临时签名 URL,有时效性,如需下载请尽快使用

表格输出后追加:

⚡ 更多操作
• 数据已保存至 {数据文件路径}(含完整字段与全部媒体链接)
• 是否继续翻页获取更多帖子?(本次累计 {total} 条)

6. 使用场景

场景痛点使用方式
竞品内容拆解学习想系统研究竞品账号内容策略输入竞品主页 URL,逐页拉取帖子做选题 / 文案 / 互动分析
创作者作品存档担心喜欢的作品被删抓取全部帖子,保存数据与媒体链接
素材搬运二次剪辑批量收集素材全量抓取后按媒体链接批量处理
自营账号备份防账号内容丢失定期抓取自己主页帖子做本地备份
课程 / 教程离线囤货教程视频想反复看提取帖子及视频链接归档
无水印源文件交付甲方要求提供源素材拉取帖子媒体链接交付
达人合作背调合作前快速了解对方作品抓取对方主页近期帖子做内容质量评估

7. 项目架构

facebook-posts/
├── SKILL.md                     # 本文件
├── scripts/
│   └── fetch_posts.py           # 提取脚本(URL 解析 / 翻页 / JSON 落盘)
├── references/
│   └── api_docs.md              # 接口文档(技术参考)
└── output/                      # 数据文件输出目录(运行时自动创建)
文件用途
scripts/fetch_posts.py主页帖子提取(--url / --query / --continue)
references/api_docs.md接口详细文档与错误码

8. 常见问答

Q: 提示 API Key 已被禁用(code=3105)? A: 前往红狐 hub 重新生成密钥并更新 REDFOX_API_KEY 环境变量。

Q: 返回空数据? A: 确认 URL 为 facebook.com/用户名 格式的主页链接(非单条帖子链接)、主页为公开状态。

Q: 每页多少条? A: 每页最多 50 条,以接口实际返回为准;翻页依赖 paginationToken,为空表示无更多数据。

Q: 媒体链接能保存多久? A: fbcdn 签名 URL 有时效性(数小时到数天),需要下载请尽快使用,或重新提取获取新链接。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Facebook Posts AI skill do?

Facebook 主页帖子批量提取工具。用户只需提供 Facebook 账号主页 URL,即可拉取该主页近期帖子:正文、点赞、评论、图片/视频链接、发布时间、链接与作者信息,支持逐页翻页,表格呈现。适用于竞品账号内容拆解学习、创作者作品存档、素材搬运二次剪辑、自营账号备份、达人合作背调等场景。当用户需要提取、抓取、拉取 Facebook 主页帖子列表时使用。触发词:Facebook帖子、Facebook账号学习、FB主页帖子、脸书帖子提取、facebook posts、FB帖子。

Why use Facebook Posts on TypingMind?

Because you install it once and use it with any model. Facebook Posts is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Facebook Posts in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/redfox-data/redfox-community/tree/main/skills/facebook-posts. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Facebook Posts?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Facebook Posts?

As many as you like. As long as a model supports skills, you can use Facebook Posts with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Facebook Posts AI skill free?

It is published on GitHub by redfox-data. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇