Skip to main content

facebook

Query Facebook — pages, posts, insights, and comments via the Graph API.

来源信息

仓库
ThinkfleetAI/thinkfleet-engine
最近来源活动
2026年2月1日 16:21
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
facebook
description
Query Facebook — pages, posts, insights, and comments via the Graph API.
metadata
{"thinkfleetbot":{"emoji":"📘","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Facebook Query pages, posts, and insights via the Facebook Graph API. ## Environment Variables - `FACEBOOK_ACCESS_TOKEN` - Page or user access token ## Get page info ```bash curl -s "https://graph.facebook.com/v19.0/PAGE_ID?fields=name,fan_count,followers_count&access_token=$FACEBOOK_ACCESS_TOKEN" | jq '{name, fan_count, followers_count}' ``` ## List page posts ```bash curl -s "https://graph.facebook.com/v19.0/PAGE_ID/posts?fields=message,created_time,likes.summary(true),comments.summary(true)&limit=10&access_token=$FACEBOOK_ACCESS_TOKEN" | jq '.data[] | {id, message, created_time, likes: .likes.summary.total_count, comments: .comments.summary.total_count}' ``` ## Get page insights ```bash curl -s "https://graph.facebook.com/v19.0/PAGE_ID/insights?metric=page_impressions,page_engaged_users&period=day&access_token=$FACEBOOK_ACCESS_TOKEN" | jq '.data[] | {name, values: .values[-1]}' ``` ## Notes - Page access token required for page management. - Always confirm before posting content.
在 GitHub 查看