facebook-posts

facebook-posts is a skill for Claude Code, Codex from redfox-data/redfox-community-dsh. It costs 143 tokens per session (1,737 once invoked), scanned A, original, MIT.

A tool that retrieves recent posts from a Facebook page, including text, engagement counts, media links, dates, and author or post links. It supports page-by-page browsing and presents results in a table while keeping full data in JSON.

In plain words
What is it for?
Use it to archive a page's posts, study a competitor or creator's content, review engagement, collect media links, or support brand and partnership research.
Why use it?
It saves time when reviewing many posts and keeps the collected fields in a reusable format. It can also help avoid manually copying posts and engagement details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to archive a page's posts, study a competitor or creator's content, review engagement, collect media links, or support brand and partnership research.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redfox-data/redfox-community-dsh/facebook-posts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add redfox-data/redfox-community-dsh --skill facebook-posts
Clone the repo
git clone --depth 1 https://github.com/redfox-data/redfox-community-dsh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for facebook-posts

README.md
[![agentmods](https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/facebook-posts/github.svg)](https://agentmods.dev/skills/redfox-data/redfox-community-dsh/facebook-posts)
Your own site
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/facebook-posts"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/facebook-posts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for facebook-posts

Your own site · 80×15
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/facebook-posts"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/facebook-posts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00143 $0.01737
Opus 5.5 $0.00057 $0.00695
Sonnet 5.5 $0.00029 $0.00347
Haiku 4.5 $0.00014 $0.00174

Measured 1mo ago against content hash 1af193aa1ef8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

facebook-posts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch_posts.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/facebook-posts/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Facebook 主页帖子提取

1. 简介

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

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

2. 核心功能

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

3. 一键安装

获取 API Key

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

配置环境变量

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

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

4. 使用指南

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

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

交互规则:

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

翻页

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} 条)

Read the full file on GitHub · 138 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 138 lines · 143 tokens per session scan A 1af193aa1ef8

Subscribe to this mod's changes

facebook-posts is a skill published in the GitHub repository redfox-data/redfox-community-dsh (13 stars, last pushed 6d ago), licensed MIT. It adds 143 tokens to every session and 1,737 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.

Related

facebook-posts compared with skills from other repositories

facebook-posts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
facebook-postsredfox-data/redfox-community-dshSkill136d agoMITA143Claude Code, Codex
dsh-hooks-authoringKYinCode/dsh-hooks-pluginSkill33mo agoMITA112Claude Code
web-artifact-designerxulelenlp/dsh-web-artifact-designerSkill93mo agoMITA115Claude Code, Codex
refactoromagents/omagentsSkill3613d agoMITA55Codex
tech-debt-auditomagents/omagentsSkill3613d agoMITA57Codex
deep-researchomagents/omagentsSkill3613d agoMITB24Codex
company-research-methodPerryLink/dsh-industry-researchSkill2277d agoApache-2.0A83Claude Code, Codex