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

# Select Pages

> Select Facebook Pages once and reuse them across multiple facebook_page_insights nodes—no repeated page selection

Select Facebook Pages once and reuse them across multiple facebook\_page\_insights nodes—no repeated page selection. You can also select and list all available pages. Skip if you have just one facebook\_page\_insights node, as it already includes its own picker.

|                      |                         |
| -------------------- | ----------------------- |
| **App**              | Facebook                |
| **Operation ID**     | `facebook_select_pages` |
| **Type**             | Action                  |
| **Connection**       | `facebook` (required)   |
| **Credits per run**  | Free                    |
| **Agent / MCP tool** | Yes                     |

## Inputs

| Field            | Type                                          | Required | Default | Description                                                                                                                                                                                                                                                                                                                                  |
| ---------------- | --------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `selection_mode` | string or SelectableOption                    | Yes      | -       | Selection mode for accounts. Available options: 'manual': User can pick accounts from a dropdown in the UI in the node settings. 'all': Select all available accounts the user has access to. 'filter': User can filter accounts by name or ID.                                                                                              |
| `accounts`       | array (also accepts a comma-separated string) | No       | -       | List of accounts to select from. If not provided, the user will be prompted to select accounts in the UI. Only use if 'selection\_mode' is 'manual'. The accounts should be in the format:                                                                                                                                                   |
| `filters`        | array of FilterItem                           | No       | -       | List of filters to apply to the accounts. Each filter must have a field, operator, and value. Only use if 'selection\_mode' is 'filter'. The only available fields to filter by are: - 'accountName' - 'accountId' Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit`          | integer                                       | No       | -       | The maximum number of accounts to return. If not provided, all accounts will be returned.                                                                                                                                                                                                                                                    |

### FilterItem

| Field      | Type                       | Required | Default | Description                                                                                                                                                   |
| ---------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `field`    | string or SelectableOption | Yes      | -       | The field to filter on, must be one of the current selected metrics or dimensions.                                                                            |
| `operator` | string                     | Yes      | -       | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value`    | string                     | Yes      | -       | The value to filter by. Can be a string, number, regex, or a list of strings.                                                                                 |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns list of pages with label (page name) and value (page ID).

**Fields**: `label`, `value`
