# Facebook Followers & Following

Pull the profiles that follow a Facebook page — or the profiles that page follows — as clean stubs with name, profile URL, profile ID, avatar, and bio. Choose followers, following, or both.

**Pricing:** $5 / 1k profile

**Endpoint:** `POST /api/v1/agents/facebook/followers/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_urls` | array | Yes | Facebook page or profile URLs, or vanity handles (e.g. cocacola). One per line. |
| `followType` | string | No | Pull the page's followers, the profiles it follows, or both. |
| `limit` | integer | No | Maximum number of profiles to return per page. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/facebook/followers/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"page_urls":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/facebook/followers/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "page_urls": [
        "..."
    ]
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `followerName` | Follower Name | text |
| `profileUrl` | Profile URL | text |
| `profileId` | Profile ID | text |
| `avatarUrl` | Avatar URL | text |
| `bio` | Bio | text |
| `relationship` | Relationship | text |
