Facebook friends API
GET /api/v1/friends · base https://api.getsocialapi.com/fb
Friends list of a user — the same shape, node fields, pagination and privacy
behavior as followers, with
full_list_type=FRIENDS.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
user_id | query | yes | Numeric user id, 1–20 digits |
after | query | no | Cursor from page_info.end_cursor |
To get the next page: take page_info.end_cursor from the response
and pass its value as the after query parameter. Repeat with each new
end_cursor while page_info.has_next_page is true.
Example
curl -G "https://api.getsocialapi.com/fb/api/v1/friends" \
--data-urlencode "user_id=61595500131774" \
-H "X-API-Key: gsa_live_..."
Response
Identical to get user followers — see the field table and pagination notes there.
note
Friend lists are frequently hidden by privacy settings — expect
can_see_follower_list: false with empty edges for many profiles. The
friend count remains available in the profile payload.
Errors
| HTTP | Meaning |
|---|---|
401 / 403 / 429 | see Rate limits |
404 | profile does not exist |
503 | upstream timeout — deep cursor pages can be slow; retry the same request (same after) with backoff |