# disconnectFacebookLeadAds

Disconnect Facebook Lead Ads for the key owner's own Facebook account. Goliath's access is always removed; unsubscribing the Pages and deauthorizing the app at Facebook are best-effort, so read the result: pagesDisconnected is how many Pages were unsubscribed, and deauthorized false means the user should remove the app in their Facebook settings themselves. Connecting again needs the customer's own login in the app (getIntegrationSetupUrls), so confirm with the user first. Organization admins only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "disconnectFacebookLeadAds", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

None.

## Response (data, an example)

```json
{
  "oauthMutation": {
    "disconnectFacebookAccount": {
      "pagesDisconnected": 0,
      "deauthorized": true
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "disconnectFacebookLeadAds",
    "variables": {}
  }'
```
