Skip to main content

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​

ParameterInRequiredDescription
user_idqueryyesNumeric user id, 1–20 digits
afterquerynoCursor 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​

HTTPMeaning
401 / 403 / 429see Rate limits
404profile does not exist
503upstream timeout — deep cursor pages can be slow; retry the same request (same after) with backoff