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

# Facebook (System User Token)

> Integrate your application with the Facebook API using a Business Manager system user access token

## 🚀 Quickstart

Connect to Facebook with Nango using a system user access token and see data flow in 2 minutes. This uses a long-lived token generated in Meta Business Settings — no OAuth redirect required.

<Steps>
  <Step title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to the Integrations tab -> *Configure New Integration* -> *Facebook (System User Token)*.
  </Step>

  <Step title="Connect your Facebook system user">
    Go to the Connections tab -> *Add Test Connection*, then paste your system user access token. Later, you'll let your users do the same directly from your app.
  </Step>

  <Step title="Call the Facebook API">
    Let's make your first request to the Facebook API (fetch the system user's own info). Replace the placeholders below with your API key (Environment settings tab > API Keys), integration ID (Integrations tab), and connection ID (Connections tab):

    <Tabs>
      <Tab title="cURL">
        ```bash theme={null}
        curl "https://api.nango.dev/proxy/v22.0/me" \
          -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
          -H "Provider-Config-Key: <INTEGRATION-ID>" \
          -H "Connection-Id: <CONNECTION-ID>"
        ```
      </Tab>

      <Tab title="Node">
        Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

        ```typescript theme={null}
        import { Nango } from '@nangohq/node';

        const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

        const res = await nango.get({
            endpoint: '/v22.0/me',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>'
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

    ✅ You're connected! Check the Logs tab in Nango to inspect requests.
  </Step>

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/primitives/auth) to integrate Nango in your app.
  </Step>
</Steps>

## 📚 Facebook (System User Token) integration guides

Nango maintained guides for common use cases.

* [How do I link my account?](/docs/api-integrations/facebook-system-user/connect)\
  Generate a system user access token in Meta Business Settings and connect it to Nango

Official docs: [Meta access tokens guide (System User tokens)](https://developers.facebook.com/documentation/facebook-login/guides/access-tokens#systemusertokens)

<Note>
  This integration is for server-to-server access via a Business Manager system user — no per-user login flow. If you need to authenticate on behalf of individual users instead, see the [Facebook](/docs/api-integrations/facebook) OAuth integration.
</Note>

## 🧩 Pre-built syncs & actions for Facebook (System User Token)

Enable them in your dashboard. Extend and customize to fit your needs.

*No pre-built syncs or actions available yet.*

<Tip>Not seeing the integration you need? [Build your own](/docs/guides/functions/functions-guide) independently.</Tip>

***
