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

JSON export with comment_replies does not return comment_reply data

Closed

dvp-apify opened this issue
a month ago

I ran a crawl for facebook comments with the toggle to include comment_replies set to on. When showing the preview of the dataset, and when exporting the dataset as a csv, I see the columns related to comment_replies (such as replyToCommentId) However, when I export using JSON, it does not have the replyToCommentId key in the json document. I'd like to get the full document as we primarily integrate using json, and not csv

User avatar

Hi! I manually checked your dataset, please note that replyToCommentId value presented only for replies and missing for top-level comments, see part of dataset from your run: https://api.apify.com/v2/datasets/D4wb9wcSZz7fikfoa/items?clean=true&fields=commentUrl,replyToCommentId,id,text&format=json&limit=200&offset=100000

Another thing - please do mind that reply or parent comment might be removed either by post author or related profile might be blocked. In particular https://www.facebook.com/100063983201742/posts/837161181759981?comment_id=415111484575693 from your dataset no longer exists

Sample re-run only for post above: https://console.apify.com/view/runs/Z3DQFeuxNwP37SCcd Opening https://www.facebook.com/100063983201742/posts/837161181759981?comment_id=415111484575693 in incognito browser will not scroll to reply because its removed (I recheck entire thread in browser manually). Comments which still exists at time of scraping scrolled into view as follows: https://www.facebook.com/100063983201742/posts/837161181759981?comment_id=403491015770613 - its reply to top level comment and scrolled as expected https://www.facebook.com/100063983201742/posts/837161181759981?comment_id=1171891484171223 is reply to reply however nested view only displayed for logged Facebook user, in incognito browser it looks like reply to top level comment (screens attached)

So actor works as expected. Comment-reply relation is correct, just a bit tricky to re-check in browser.

Please let me know if issue clarified in enough details or you have other questions.

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