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
| Parameter | In | Required | Description |
|---|---|---|---|
group_id | query | yes | Numeric group id, 1–20 digits |
after | query | no | Cursor 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
| Field | Type | Description |
|---|---|---|
node.id | string | Numeric user id — pass to contacts / followers |
node.strong_id__ | string | Stable id, usually equal to id |
node.name | string | Display name |
node.profile_picture.uri | string | Avatar URL (may expire — download promptly) |
node.bio_text.text | string | Profile bio, when filled |
node.current_city.display_name | string | Current city, when filled |
node.friendship_status | string | STRANGER, CAN_REQUEST, ARE_FRIENDS, … — viewer-relative, mostly CAN_REQUEST for API access |
node.can_viewer_message | bool | Whether the member accepts messages |
member_tags | array | Admin/moderator badges — ["ADMIN"] for group admins |
Pagination
- Take
page_info.end_cursorfrom the response (underdata.groupon page 1,data.fetch__Groupon page 2+). - Pass it as
afteron the next call. - Stop when
has_next_pageisfalseorend_cursoris empty.
Deduplicate by node.id when aggregating — Facebook pages are eventually
consistent and may occasionally repeat an edge.
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
| HTTP | Meaning |
|---|---|
401 / 403 / 429 | see Rate limits |
404 | group does not exist |
502 | temporary upstream error — retry with backoff |
503 | upstream timeout — deep cursor pages can be slow; retry the same request (same after) with backoff |