Facebook PRO icon

Facebook PRO

Interact with Facebook using cookie-based authentication

Comment → Get Comment Count

AI-generated

Summary

Retrieve the total number of comments on a specified Facebook object such as a post, photo, or video.

Inputs

  • Object ID (Post/Photo/Video) (required) — The unique identifier of the Facebook object (post, photo, or video) for which to get the comment count.

Output shape

a single JSON object containing the count of comments for the specified object

The operation returns the comment count as a numeric value in the output JSON. Errors provide an error message and code.

Discussion