Connect

List Facebook pages

Changed on

Returns all Facebook Pages the connected account has access to, including the currently selected Page and the Instagram professional account linked to each Page. Works on facebook accounts and on metaads accounts (classic and Facebook Login for Business connections). On a business-login metaads connection selectedPageId is the default Page ads run as, and every listed Page can be passed as pageId on POST /v1/ads/create. A classic metaads connection has no default Page, so selectedPageId is null there.

get/v1/accounts/{accountId}/facebook-page

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/accounts/{accountId}/facebook-page
  • Auth: HTTP bearer

Path parameters

accountIdstring required

Query parameters

refreshboolean

When true, bypasses the page cache and fetches fresh pages from Meta. Rate-limited server-side to 1 refresh per 60s. Pages no longer accessible to the connected account will be removed from the list on refresh.

Response

Pages list

selectedPageIdstring nullable
cachedboolean

false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)

Changes

    • breaking

      the response property became nullable for the status

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status