Installation
SKILL.md
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}'