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

# Facebook Pages (Graph API)

> Facebook Pages you manage through Meta's Graph API: Page details and the Page feed.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/facebook.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=0ce3c1f33d00ea1826b59ab053ffcd8f)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Needs&#x20;

`FACEBOOK_ACCESS_TOKEN`

Endpoints

3

Auth

Key in query

[Vendor docs](https://developers.facebook.com/docs/pages-api)

## Setup

| Variable | | What it is |
| - | - | - |
| `FACEBOOK_ACCESS_TOKEN` | required | A Page access token (or a system-user token) from your Meta app, with the Pages permissions the call needs (Meta for Developers > your app > Graph API Explorer) |
| `META_GRAPH_API_VERSION` | optional | Graph API version. Meta retires old versions about two years after release. Default `v25.0`. One of `v25.0`, `v26.0`, `v27.0`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Most Page calls need a Page access token, obtained by exchanging a user token; the Pages a user manages come from user.accounts.
* Reading Page content and publishing need Meta App Review for the pages\_\* permissions.
* Lists page with paging.cursors.after; follow paging.next when present.
* Rate limits are per Page: error 80001 means too many calls, wait and retry.

## Endpoints

GET

Get a Page

Profile and audience fields of a Facebook Page.

[Open](#facebook-page-get)

GET

List a Page's posts

The Page's feed: its own posts, visitor posts and public posts that tag it.

[Open](#facebook-page-feed)

GET

List the Pages a user manages

Pages the token's user owns or has a role on, with the user's tasks on each.

[Open](#facebook-user-accounts)

### Get a Page

GET

`/{page_id}`

`facebook.page.get`

Profile and audience fields of a Facebook Page.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Page id.
      </td>
    </tr>

    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated: id, name, username, about, category, link, website, fan\_count, followers\_count, is\_published, instagram\_business\_account, ... Example `name,about,fan_count,followers_count,link`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.facebook.com/docs/graph-api/reference/page) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-user-get)

> [!NOTE]
>
> * Fields that can carry user data need a Page access token; the instagram\_business\_account field needs a user token.

### List a Page's posts

GET

`/{page_id}/feed`

`facebook.page.feed`

The Page's feed: its own posts, visitor posts and public posts that tag it.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Page id.
      </td>
    </tr>

    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated post fields, e.g. id, message, created\_time, permalink\_url, attachments. Example `id,message,created_time,permalink_url`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Up to 100.
      </td>
    </tr>

    <tr>
      <td>
        `is_published`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only published posts.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.facebook.com/docs/graph-api/reference/page/feed) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)

> [!NOTE]
>
> * Needs a Page access token and pages\_read\_engagement plus pages\_read\_user\_content.
> * Returns roughly 600 published, ranked posts a year; expired posts are gone. Reels come from the VideoReels edge.

### List the Pages a user manages

GET

`/{user_id}/accounts`

`facebook.user.accounts`

Pages the token's user owns or has a role on, with the user's tasks on each.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`user_id` required</td><td>string</td><td>path</td><td>A user id, or me. Example `me`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated Page fields, e.g. id, name, tasks.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.facebook.com/docs/graph-api/reference/user/accounts) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-user-get)

```python Python theme={null}
router.call_data_api("facebook.user.accounts", {'user_id': 'me'})
```

```text MCP theme={null}
call_data_api(endpoint="facebook.user.accounts", params={"user_id": "me"})
```


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