
Facebook Page Post Scraper | Fast & Reliable | $8 / Mo
Pricing
$8.00/month + usage

Facebook Page Post Scraper | Fast & Reliable | $8 / Mo
Most affordable, enterprise-grade Facebook Page scraper. Extracts full post data including text, reactions, and media from any list of Facebook Page URLs. It delivers clean JSON. Perfect for competitor analysis and brand monitoring. Updated weekly.
5.0 (1)
Pricing
$8.00/month + usage
1
1
0
Last modified
2 days ago
๐ Facebook Page Scraper
โ About Facebook
Facebook is a global social networking platform that allows users to connect with others, share content like photos and videos, and engage with pages representing brands, celebrities, and organizations.
โ About This Actor
The Facebook Page Scraper automates the extraction of posts from specific Facebook pages. By providing a list of page URLs, this actor will navigate to each page, handle infinite scrolling to load content dynamically, and scrape the posts it finds.
It is designed to extract key data for each post, including the post URL, text content, author information, engagement metrics (likes, comments, shares), and media attachments. This tool is ideal for market researchers, social media managers, and data analysts who need to gather public content from specific Facebook communities for in-depth analysis, brand monitoring, or competitive research.
โ ๏ธ Why Login Cookies Are Required
Recently, Facebook has implemented aggressive anti-scraping measures. While you might be able to view a public Facebook page in your browser without being logged in, this access is extremely limited. After scrolling down just once or twice, Facebook will block the page with a mandatory login wall popup. This prevents any further posts from being loaded and makes deep scraping impossible for "guest" users.
To build a reliable scraper that can extract a significant number of posts, the actor must appear to be logged in.
This actor achieves this by using your browser's session cookies. By providing them, you allow the scraper to operate from a logged-in state, ensuring it can bypass the login wall and scroll freely to scrape all the posts required.
๐ช How to Get Your Cookies
To use this actor, you must provide your Facebook session cookies. The easiest method is with a browser extension. We strongly recommend using a dedicated "scraper" account for this, never your personal account.
Recommended Extension: Cookie Editor for Chrome or Firefox.
Step-by-Step Guide:
Install the Cookie Editor extension in your browser.
Open a new tab and log in to your Facebook account.
Once logged in, click the Cookie Editor icon in your browser's toolbar.
In the cookie list, click the "Export" button.
Choose "JSON" as the export format and click "Copy to Clipboard".
Paste the copied JSON text into the "Facebook Cookies" input field for this actor.
๐ฅ Input Parameters
The actor requires the following input to run:
Parameter Type Required Description pageUrls string[] โ Yes An array of one or more full URLs of the Facebook pages you want to scrape. resultsLimit number โ No The maximum number of posts to scrape from each page URL provided. Defaults to 20. cookies string โ Yes Your Facebook account's cookies, exported as a JSON array. See the tutorial above to get them. Example Input
JSON { "pageUrls": [ "https://www.facebook.com/NASA", "https://www.facebook.com/NationalGeographic" ], "resultsLimit": 50, "cookies": "[{"domain":".facebook.com","expirationDate":1789456789,"hostOnly":false,"httpOnly":true,"key":"sb","name":"sb","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"..."}, ... ]" } ๐ค Output Data
The actor stores its results in the dataset. Each item in the dataset is a JSON object representing a single scraped post.
Example Output
JSON [{ "pageUrl": "https://www.facebook.com/NASA", "url": "https://www.facebook.com/NASA/posts/pfbid02gAfuzjGqHuAk9APdU6mD...", "timestamp": 1754381347000, "postText": "Our Hubble Space Telescope spotted a celestial fireworks display in a small, nearby galaxy! ๐ This star-forming region is a vibrant nursery for thousands of young stars.", "reactionsCount": 25100, "commentsCount": 1200, "sharesCount": 3400, "postId": "1891857264894411", "author": { "id": "100044605981724", "name": "NASA", "profilePicture": "https://scontent.fpoz3-1.fna.fbcdn.net/...", "profileUrl": "https://www.facebook.com/NASA" }, "attachments": [{ "type": "photo", "url": "https://www.facebook.com/photo.php?fbid=1891857228227748&set=a.197904564289698&type=3" }] }] ๐ A Critical Note on Selectors
This actor works by controlling a real browser and finding data on the page using CSS selectors. Facebook changes its website code frequently, which can break these selectors.
If the actor runs but fails to extract data, the most likely cause is that a CSS selector in the code (src/routes.ts) is no longer valid. You will need to update these selectors by using your browser's "Inspect" tool to find the new ones.
โ Support
If you encounter any issues or have suggestions for improvement, please feel free to raise an issue on the project's Apify page.
Share Actor: