Skip to main content

Facebook group members API

GET /api/v1/members · base https://api.getsocialapi.com/fb

Group members, raw Facebook GraphQL, one page per call. Page 1 returns the payload under data.group, page 2+ under data.fetch__Group — walk both roots (see pagination below). GraphQL base: FetchGroupMemberListRecentlyJoined (1st page) and …_At_Connection_Pagination_Group_group_member_profiles_connection (2nd+).

Request​

ParameterInRequiredDescription
group_idqueryyesNumeric group id, 1–20 digits
afterquerynoCursor from page_info.end_cursor of the previous page

Example​

curl -G "https://api.getsocialapi.com/fb/api/v1/members" \
--data-urlencode "group_id=846375055763514" \
-H "X-API-Key: gsa_live_..."

The page size is fixed by the service (15 members per page); a page-size parameter is not supported for this route — walk the list with after.

To get the second page: take page_info.end_cursor from the first response and pass its value as the after query parameter. For each further page repeat this with the new end_cursor while page_info.has_next_page is true.

Response​

{
"data": {
"group": {
"id": "846375055763514",
"viewer_admin_type": "NONE",
"group_member_profiles": {
"edges": [
{
"member_tags": [],
"has_member_feed": true,
"node": {
"__typename": "User",
"strong_id__": "100006193270762",
"id": "100006193270762",
"name": "Saman Bandara",
"profile_picture": {"uri": "https://scontent/…jpg"},
"bio_text": {"text": "…"},
"current_city": {"display_name": "…"},
"friendship_status": "CAN_REQUEST",
"can_viewer_message": true
}
}
],
"page_info": {"end_cursor": "AQHTm5Xq…", "has_next_page": true}
}
}
}
}

Member node fields​

FieldTypeDescription
node.idstringNumeric user id — pass to contacts / followers
node.strong_id__stringStable id, usually equal to id
node.namestringDisplay name
node.profile_picture.uristringAvatar URL (may expire — download promptly)
node.bio_text.textstringProfile bio, when filled
node.current_city.display_namestringCurrent city, when filled
node.friendship_statusstringSTRANGER, CAN_REQUEST, ARE_FRIENDS, … — viewer-relative, mostly CAN_REQUEST for API access
node.can_viewer_messageboolWhether the member accepts messages
member_tagsarrayAdmin/moderator badges — ["ADMIN"] for group admins

Pagination​

  1. Take page_info.end_cursor from the response (under data.group on page 1, data.fetch__Group on page 2+).
  2. Pass it as after on the next call.
  3. Stop when has_next_page is false or end_cursor is empty.

Deduplicate by node.id when aggregating — Facebook pages are eventually consistent and may occasionally repeat an edge.

note

The SDK mirrors this loop with client.fb.members(group_id, after=...) — one page per call, after taken from page_info.end_cursor; see Facebook SDK.

Errors​

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