facebook/
comments

The Facebook Comments API collects public Facebook comments from one or more post URLs, returning normalized text, author details, timestamps, visible engagement, media, and source links.

Facebook Comments API

Comments
Public data
Post URLs
0.3 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

Facebook Comments

Facebook Comments are public responses to posts, with text, author context, publication time, visible likes, reply counts, media, and source relationships. These discussion signals support audience feedback analysis, recurring-question research, community monitoring, and content reporting.

Facebook Comments API Features

  • Multi-post comment collectionCollect public comments from one or more Facebook post URLs in a single request.
  • Normalized comment recordsThe Facebook Comments API returns comment IDs, text, author details, timestamps, visible engagement, media, and source links in a consistent structure.
  • Traceable conversation contextPreserve post, parent-comment, and submitted input references for joins, deduplication, and audit trails.
  • Public data boundaryKeep private, restricted, removed, and login-only content outside the result scope.

Facebook Comments API Parameters

ParametersRequiredDescription
urlsRequiredPublic Facebook post URLs, separated by commas or new lines.
results_limitOptionalMaximum total comments returned across all URLs, from 1 through 20,000. If omitted, up to 20,000 comments are returned, limited to what your available credits can cover.

How to Use the Facebook Comments API

Submit public post URLs to the Facebook Comments API as an asynchronous task, poll its task ID, then read normalized comment records with cursor pagination.

  1. Prepare one or more public Facebook post URLs.
  2. POST urls to /v1/facebook/comments.
  3. Poll /v1/tasks/{task_id} until the status is succeeded.
  4. Read /v1/tasks/{task_id}?limit=50 and follow results.next_cursor when more records exist.
curl -X POST "https://api.socq.ai/v1/facebook/comments" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.facebook.com/facebook/posts/POST_ID"]}'

# Poll GET /v1/tasks/{task_id}, then read /v1/tasks/{task_id}?limit=50 and use data.results.

Facebook Comments API Use Cases

  • Customer feedback and sentiment analysis: Analyze public comment text from the Facebook Comments API to understand opinions, product feedback, questions, and recurring themes.
  • Campaign content optimization: Compare comment sentiment and visible engagement across campaign posts to refine messaging and creative decisions.
  • Brand conversation monitoring: Organize public comments from selected brand posts by topic, time, author, and engagement signals.
  • Competitive audience research: Study public reactions on competitor posts to compare audience interests, questions, and engagement patterns.
  • Audience topic discovery: Build datasets of comment text and timestamps for topic clustering, trend discovery, and language analysis.
  • Engaged commenter discovery: Use author details, likes, and reply counts to identify commenters who consistently drive discussion.
  • Analytics and data enrichment: Connect structured comment records with campaign, post, and analytics datasets through IDs and source URLs.

Facebook Comments API Pro Tips

  • Use canonical public Facebook post URLs so each input maps cleanly to its source post.
  • Group related public post URLs in one Facebook Comments API request to organize each collection task by campaign or topic.
  • Save the task ID immediately after submission so your application can poll and resume the collection workflow.
  • Follow results.next_cursor until it is empty to read every result page returned by the task.
  • Store comment IDs, post IDs, parent comment IDs, input URLs, and source URLs with every record.
  • Use comment ID to identify and merge repeated records in the same dataset.
  • Use created_at and collected_at to organize comment history and incremental analysis.
  • Review Raw JSON when validating field mappings or connecting results to a new data pipeline.

Beyond the Facebook Comments API, use these APIs when you need a different type of public Facebook data.

  • Facebook Pages API — Retrieve public Page profiles, contact details, images, and visible audience ratings.
  • Facebook Posts API — Collect public posts, media, reactions, comments, and shares from supported Facebook URLs.
  • Facebook Video Transcript API — Extract available transcript text and format from known public video post or Reel URLs.
  • Facebook Comment Replies API — Retrieve public replies for a known comment using its feedback ID and expansion token, with text, author identity, engagement, and parent context.
  • Facebook Company Reviews API — Collect public Page reviews with review text, reviewer links, ratings, likes, timestamps, and company context.
  • Facebook Profiles API — Look up public profiles or Pages from known Facebook URLs with identity, bio, avatar, visible counters, and input context.

Explore other platforms

Combine Facebook data with public data from other supported social platforms.

Facebook Comments API — FAQ

Facebook Comments API collects publicly visible comments from one or more Facebook post URLs. It returns normalized text, author details, timestamps, like and reply counts, media, and source references.

Use publicly accessible Facebook post URLs. Add one or more URLs to the urls array for each collection task.

Each record can include comment ID, text, author details, source URL, likes, reply count, media, created_at, collected_at, post ID, post URL, parent comment ID, and input URL.

Yes. Add multiple public post URLs to the urls array of the same request.

Submit the post URLs to /v1/facebook/comments, save the returned task ID, and poll /v1/tasks/{task_id} until the task succeeds. The completed task contains structured comment results.

Read /v1/tasks/{task_id}?limit=50 after completion and continue with results.next_cursor until the response no longer includes a cursor.

Send your SocQ API key as a Bearer token in the Authorization header for task submission and result retrieval.

Map normalized comment, author, engagement, timestamp, and source fields into analytics tables, reports, or applications. Preserve comment and post identifiers to support joins and deduplication.

The Facebook Comments API costs 0.3 credits for each comment record returned. There is no base task charge.

By SocQ · Updated

From the official Facebook API documentation:

“The Page Public Content Access feature allows an app access to the Pages Search API and to read public data for Pages […] This permission or feature requires successful completion of the App Review process before your app can access live data.”
Meta for Developers: Page Public Content Access · accessed November 2026