Better Fetch

Facebook Posts Scraper

Extract public Facebook Page timeline posts or the three visible posts from a public Facebook group without login.

Socialv0.3.0~2 credits/runPro or Scale requiredSource on GitHub

Workspace

Configure

Inputs stay here while results become exportable artifacts.

Start from an example

Extra milliseconds to wait after the plugin page loads.

Public Facebook Page URL, e.g. https://www.facebook.com/NASA. Use page_url or page_slug.

Public Facebook group URL or numeric group ID. Returns at most the three posts Facebook exposes publicly.

Facebook Page slug, numeric page ID, or page path, e.g. NASA. Use page_slug or page_url.

Maximum visible timeline posts to return from the public Page Plugin.

View Pro and Scale plans
~2 base credits/run + 32 per residential attempt10 runs/minute

Results

Preview, inspect, copy, or export the complete output.

Your result will become an artifact

Run the tool to inspect structured rows, raw JSON, execution details, and downloadable JSON, CSV, and Markdown files.

countpostsmembersgroup_idpage_urlfollowerspage_namegroup_name

Overview

Facebook Posts Scraper gives agents a validated no-login slice of public Facebook Page monitoring. Provide a Facebook Page URL or slug and the tool renders Facebook's public Page Plugin timeline, then normalizes the visible post cards into compact records with author, post URL, timestamp label, text, engagement counts, media thumbnails, and outbound links. It is designed for social listening, brand monitoring, campaign research, newsroom checks, and lightweight competitor tracking where a bounded public page feed is enough.

Last validated: Aug 9, 2026

Input

wait_msintegerdefault: 4000

Extra milliseconds to wait after the plugin page loads.

page_urlstring

Public Facebook Page URL, e.g. https://www.facebook.com/NASA. Use page_url or page_slug.

group_urlstring

Public Facebook group URL or numeric group ID. Returns at most the three posts Facebook exposes publicly.

page_slugstring

Facebook Page slug, numeric page ID, or page path, e.g. NASA. Use page_slug or page_url.

max_resultsintegerdefault: 5

Maximum visible timeline posts to return from the public Page Plugin.

Output

countintegerrequired

Number of returned visible post records

postsobject[]required

Public Facebook Page timeline post records visible in the plugin

membersinteger

Visible public group member count

group_idstring

Public Facebook group ID for a group request

page_urlstringrequired

Canonical public Facebook Page URL requested

followersinteger

Visible follower count when available

page_namestring

Visible page name when available

group_namestring

Visible public group name

source_urlstringrequired

Fetched Facebook Page Plugin URL

Examples

nasa-page

{
  "page_slug": "NASA",
  "max_results": 3
}

public-group-posts

{
  "group_url": "https://www.facebook.com/groups/742354120555345/",
  "max_results": 3
}

Use cases

Brand activity monitoring

Watch public Page posts for recent announcements, campaigns, product launches, and engagement signals without maintaining a Facebook login session.

Social listening research

Collect visible post text, post URLs, reactions, comments, shares, media, and outbound links for an agent that compares public Facebook activity across brands.

Newsroom and campaign checks

Pull the latest visible public posts from official Pages so editorial, comms, and marketing workflows can cite the source post and summarize engagement quickly.

FAQ

Does Facebook Posts Scraper need a Facebook login?

No. Version 0.1 uses Facebook's public Page Plugin timeline through Better Fetch. It only returns posts visible through that public embed surface.

Can it scrape private profiles, groups, comments, or deep pagination?

Not in this first slice. Version 0.1 is limited to public Page Plugin-visible timeline cards and does not use cookies, account data, private groups, or authenticated endpoints.

Why do some public Pages return fewer posts?

Facebook controls what the Page Plugin exposes. Age-restricted, country-restricted, unsupported, or temporarily unavailable Pages may show only headers or fewer post cards.

Use it anywhere

MCP (Claude, ChatGPT, Codex)

# After connecting https://betterfetch.co/api/mcp, ask your AI to:
1. Call search_tools for "Facebook Posts Scraper"
2. Call run_tool with:
   name: "facebook_posts_scraper"
   input: {"page_slug":"NASA","max_results":3}

REST

curl -sS -X POST "https://betterfetch.co/api/tools/facebook_posts_scraper/run" \
  -H "Authorization: Bearer bf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"input": {"page_slug":"NASA","max_results":3}}'

Run locally

git clone https://github.com/better-fetch/tools/tree/main/tools/facebook-posts-scraper && cd facebook-posts-scraper && npm i
BETTER_FETCH_API_KEY=bf_your_key_here npx bf-tool run --input '{"page_slug":"NASA","max_results":3}'