facebook

star 0

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

ThinkfleetAI By ThinkfleetAI schedule Updated 2/1/2026

name: facebook description: "Query Facebook — pages, posts, insights, and comments via the Graph API." metadata: {"thinkfleetbot":{"emoji":"📘","requires":{"bins":["curl","jq"],"env":["FACEBOOK_ACCESS_TOKEN"]}}}

Facebook

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

Environment Variables

  • FACEBOOK_ACCESS_TOKEN - Page or user access token

Get page info

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

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

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.
Install via CLI
npx skills add https://github.com/ThinkfleetAI/thinkfleet-engine --skill facebook
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
ThinkfleetAI
ThinkfleetAI Explore all skills →