> ## 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.

# List Pages

> Lists Facebook Pages the connected identity manages.

`metaAds.listPages` lists Facebook Pages the connected identity manages.

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

export default automation("List Pages", () => {
  onDashboardRun({ title: "List Pages" })
  const pages = metaAds.listPages()
  // Copy a Page ID into a Page comment or Messenger trigger.
})
```

Use the result to find the `pageId` for Facebook Page comment and Messenger actions and triggers. For Instagram, use [List Instagram accounts](https://docs.automate.ax/reference/integrations/meta-ads/actions/list-instagram-accounts.md). `limit` defaults to `25`; pass `after` or `before` from `pageInfo` to page through results. Optional second argument `{ account }` selects a static project account binding.

Each item includes `id`, `name`, `category`, and the person's Page `tasks`. The action never returns Page access tokens. It needs `pages_show_list`.


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