ghl_ad_fb_page_list
Retrieve Facebook pages for a connected account, using optional limit and cursor pagination to fetch full page lists in batches.
Instructions
Get Facebook pages
Retrieve Facebook pages for the connected account. Without limit the response is an array of pages (this array response will soon be deprecated — migrate to the paginated form). When limit is provided the response is a paginated { pages, paging } envelope; pass after (from paging.next) to fetch the next batch.
Endpoint: GET /ad-publishing/facebook/pages (Version header: v3; source: v3/ad-publishing-v3.json)
OAuth scopes: adPublishing.readonly
Pagination params: limit — pass them to page through full result sets.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"locationId": "<locationId>"
},
"name": "ghl_ad_fb_page_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Opaque cursor for the next batch, taken from the previous response paging.next | |
| limit | No | Page size for a paginated fetch (fetchExisting only, max 50). When set, the response is a { pages, paging } envelope instead of an array. | |
| locationId | Yes | Location identifier | |
| fetchExisting | No | Fetch existing pages flag |