Scrapes posts from any public Facebook Page timeline, returning structured data including post text, author info, engagement metrics (likes/comments/shares), reaction breakdowns (like/love/haha/wow/sad/angry/care), hashtags and external links, and media type. Use when user wants to scrape Facebook posts, extract Facebook page content, get Facebook post data, collect Facebook engagement stats, download Facebook posts, monitor a Facebook page, crawl Facebook timeline, get Facebook reactions, get like count/comment count/share count from Facebook, Facebook post bulk export, Facebook social media analytics. Supports date range filtering (afterTime/beforeTime) and cursor-based pagination for bulk collection.
Facebook page URL → list of posts with full engagement metrics and text references
browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. JS code is encapsulated in Python files under thescripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
eval "$(python scripts/get-page-id.py '{page_url}')"page_url: Full Facebook page URL, e.g. https://www.facebook.com/cern{
"pageId": "100064792144187", // Numeric page ID used in all subsequent API calls
"pageUrl": "https://www.facebook.com/cern"
}
eval "$(python scripts/get-page-posts.py '{page_id}' --cursor '{cursor}' --after-time {after_time} --before-time {before_time} --count {count})"page_id: Numeric Facebook page ID (from get-page-id above)--cursor: Pagination cursor string from previous response pagination.endCursor; omit or pass null for first page--after-time: Unix timestamp (seconds); only return posts after this time; omit or pass null for no filter--before-time: Unix timestamp (seconds); only return posts before this time; omit or pass null for no filter--count: Number of posts per batch, default 5, max recommended 10{
"posts": [
{
"postId": "1417704873732571", // Numeric post ID
"url": "https://www.facebook.com/cern/posts/pfbid…", // Post permalink
"text": "CERN Council updates European Strategy…", // Full post text
"textReferences": [
{
"type": "ExternalUrl", // "ExternalUrl" or "Hashtag"
"url": "https://home.cern/...", // Clean URL (not l.facebook.com redirect)
"offset": 731, // Position in text
"length": 96
},
{
"type": "Hashtag",
"url": "https://www.facebook.com/hashtag/espp",
"offset": 296,
"length": 5
}
],
"creationTime": 1779460218, // Unix timestamp (seconds)
"user": {
"id": "100064792144187", // Page numeric ID
"name": "CERN", // Page display name
"profileUrl": "https://www.facebook.com/cern" // Page URL
},
"likes": 1220, // Total reactions count
"comments": 44, // Comment count
"shares": 122, // Share count
"topReactions": [
{ "name": "Like", "count": 1108 },
{ "name": "Love", "count": 92 },
{ "name": "Care", "count": 9 },
{ "name": "Wow", "count": 8 },
{ "name": "Haha", "count": 1 },
{ "name": "Sad", "count": 1 },
{ "name": "Angry", "count": 1 }
],
"topReactionsCount": 1220, // Same as likes, total reactions
"media": {
"type": "Photo", // "Photo", "Video", or null for text-only
"id": "photo_id_string", // Media asset ID
"viewsCount": null // Video view count; null for photos
},
"feedbackId": "ZmVlZGJhY2s6MTQxNzcw…" // Base64 feedback ID
}
],
"pagination": {
"endCursor": "Cg8Ob3JnYW5pY19jd…", // Pass to --cursor for next page
"hasNextPage": true // false when no more posts
}
}
"error": true, check that the target page is open and the user is logged in, then retry once. If the error persists, the doc_id may have expired — check experience notes for updates.pagination.endCursor from each response as --cursor in the next call. Start value: omit --cursor (first page). Termination: pagination.hasNextPage === false.posts.length >= 1 AND posts[0].postId is non-null AND posts[0].likes is non-nullmedia.id is returned but media thumbnail/photo URLs are not included in the API response for this query; only type and ID are availableviewsCount is only populated for Video-type attachments; null for photosfeedbackId is present but detailed reaction dialog data (individual reactor profiles) requires a separate API call not covered by this Skilldoc_id: 27278869228466784 is a Facebook internal query ID that may change when Facebook deploys updates; if all calls return errors, the doc_id may need to be recaptured via HAR recording on the pageafterTime/beforeTime) applies to the timeline cursor position, not a strict server-side filter; posts near the boundary may occasionally appear outside the specified rangeget-page-id once per page URL and reuse the result for all paginated callsendCursor rather than starting over{working-directory}/browser-act-skill-forge-memories/facebook-posts-scraper-facebook-page-posts.memory.md{YYYY-MM-DD}: {what happened} → {conclusion}