Skip to main content
Use comment queries when your app needs a paged list for a post, story, or custom content item. Query top-level comments for the main thread, then query replies with parentId when a user expands a comment.
Query APIs return paged/live collection results on TypeScript, iOS, Android, and Flutter. For a single known comment ID, use Get Comment.

Parameters

Query Options

Query Top-Level Comments

Set the parent filter to null / nil when you only want root comments.

Query Replies

Set parentId to an existing comment ID to load replies for that comment.

Filter by Data Type

Use data type filters when your UI needs a specific type of comment, such as image-only comments.

Reference Targets

Notes

  • Keep referenceId and referenceType consistent between the parent comment and its replies.
  • Use smaller page sizes for reply threads than for top-level comments.
  • includeDeleted: true is mainly for moderation, audit, or admin-style views; most end-user views should exclude deleted comments.
  • Dispose of observers, subscriptions, or live collections when the screen is no longer active.

Get Comment

Retrieve a specific comment by ID

Text Comment

Create top-level comments and replies