Lantfly actor store Public catalogue. Running an actor needs an account. Open the dashboard

Facebook Posts Scraper

lantfly/facebook-posts-scraper

Posts and reels from public Facebook pages.

Run this actor in the dashboard

1021 runs quality score 70.15/100 social-media updated 2026-11-16

Price

Pay per event, on top of the compute the run uses.

EventWhat it isUSD each
result_item
Result item
0.004

Input

FieldTypeDefaultWhat it is
postUrls
Post URLs
array [] Post, video or reel URLs: one item each with fresh counts. Deleted or unavailable posts give a NOT_FOUND error item.
startUrls
Facebook pages
array [] e.g. https://www.facebook.com/velyniq.official
strategies
Strategies
array Optional: which ways to try, in order (names or kinds; `*` = the rest in the default order). Default: browser, browser-headful, browser-firefox, mobile-html, ytdlp (video/reel URLs), then vendor sources when configured. Example: ["browser-firefox", "*"].
commentUrls
Comment URLs
array [] Post URLs whose comments to read: one target `comments:<url>` each, rows with `kind: "comment"` in the `apify~facebook-comments-scraper` shape.
resultsLimit
Posts per page
integer 20
commentsPerPost
Comments per post
integer 50 Most comments read per comment URL (top-level comments, newest first where the platform allows).
maxRequestRetries
Max request retries
integer 3 Retries per target on a new exit IP after a block, rate limit or network error.
onlyPostsNewerThan
Only posts newer than
string ISO date or relative, e.g. `7 days`, `12 hours`, `1 month`. The page stops at the first posts older than this.
proxyConfiguration
Proxy
object {"groups":["RESIDENTIAL"],"country":"VN","useLantflyProxy":true}

Sample input

{
    "startUrls": [
        {
            "url": "https://www.facebook.com/velyniq.official"
        }
    ],
    "resultsLimit": 20
}

README

Facebook Posts Scraper

Comments (best effort, logged out): commentUrls + commentsPerPost give rows with kind: comment in the apify~facebook-comments-scraper shape (id, text, likesCount, date, profileName, profileUrl, facebookUrl, commentUrl) from the post page's GraphQL answers, then Apify.

Output items follow apify~facebook-posts-scraper: postId, url, text, time, timestamp, pageName, facebookUrl, facebookId (the page's numeric id), inputUrl, user{id,name,profileUrl,profilePic}, likes, comments, shares, viewsCount, media[{__typename, thumbnail, photo_image}], isVideo, plus input.

Opens each page logged out in Chromium, closes the login dialog, scrolls and reads the posts from Facebook's own /api/graphql/ responses and embedded JSON (shares count once, as the page's post). Each page and post is a target in OUTPUT: a login wall or checkpoint retries on a new exit IP and, after every retry, is blocked; a page that loads but sends no posts is retried once and then blocked, empty only when Facebook says the page has no posts (or none newer than the cut-off); unavailable pages/posts are not_found.

Strategies, in order until one answers: browser (headless Chromium), browser-headful (Chromium on a virtual display), browser-firefox, mobile-html (the logged-out mobile site's HTML, where Facebook still renders it), ytdlp (video/reel URLs), then vendor sources when configured. A page cut short is filled by the next strategy (de-duplicated by post id); OUTPUT names the strategy of each answer and every attempt.

Facebook blocks datacenter IPs: run it with RESIDENTIAL VN or MOBILE proxies.

Issues

0 open issues0 closed issues

What people reported and what the author answered is not published: sign in to read the reports or open one.

Sign in to open an issue

Reviews

No published review yet.