> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get Page comment

> Retrieves one comment on a Facebook Page post or ad post.

`metaAds.getPageComment` retrieves one comment on a Facebook Page post or ad post.

```ts automations/meta-ads-get-page-comment.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"

export default automation("Get Page comment", () => {
  onDashboardRun({ title: "Get Page comment" })
  const comment = metaAds.getPageComment({
    commentId: "comment-id",
    pageId: "page-id",
  })
  // Check comment.canReplyPrivately before sending a private reply.
})
```

Pass the Page that owns the post so Automate.ax can act with its Page access token. `fields` adds Graph fields to the default selection. Optional second argument `{ account }` selects a static project account binding.

Returns the comment's `id`, `message`, `from`, `createdTime`, `parent`, `commentCount`, `likeCount`, `canComment`, and `canReplyPrivately`. Check `canReplyPrivately` before you send a [private reply](https://docs.automate.ax/reference/integrations/meta-ads/actions/private-reply-to-page-comment.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.