Facebook Comments Scraper avatar
Facebook Comments Scraper
Try for free

7 days trial then $40.00/month - No credit card required now

View all Actors
Facebook Comments Scraper

Facebook Comments Scraper

apify/facebook-comments-scraper
Try for free

7 days trial then $40.00/month - No credit card required now

Extract data from hundreds of Facebook comments from one or multiple Facebook posts. Get comment text, timestamp, likes count and basic commenter info. Download the data in JSON, CSV, Excel and use it in apps, spreadsheets, and reports.

User avatar

How to successfully paginate until all comments are fetched?

Closed

consummate_extinguisher opened this issue
8 months ago
  1. We tried offset
  2. exclusiveStartKey But it did not work.

Say we have a facebook video URL that has 5,300 comments. Then we want to make an API call to fetch 100 at a time until there are no comments left.

Is there a way to find out what's the total amount of comment given the facebook url?

User avatar

consummate_extinguisher

8 months ago

We are using nodejs and const { ApifyClient } = require("apify-client");

User avatar

consummate_extinguisher

8 months ago

How to successfully paginate until all comments are fetched for a facebook URL? And how do we get the total comments for a given url?

User avatar

Hi! Actor supposed to get comments as specified by input in single run, then you can handle dataset as explained in SDK docs. For external functionality (not sure why you want to read parts of dataset at runtime) please ask at discord, for actor its not really expected usage.

Developer
Maintained by Apify
Actor metrics
  • 401 monthly users
  • 100.0% runs succeeded
  • 2 days response time
  • Created in Nov 2022
  • Modified 5 days ago