Facebook Groups API alternatives after its removal in 2024
Checked on 2026-11-19.
Meta deprecated the Facebook Groups API in Graph API v19.0 on 23 January 2024 and removed it from every version on 22 April 2024. Nothing replaced it: there is no official API today with which an ordinary app can read or write a group's posts. What is left is a library for researchers and, for public groups only, an unofficial HTTP API. Nothing reads a private group.
What was removed, and when
Meta's announcement of v19.0, dated January 23, 2024, says: "The Facebook Groups API is deprecated in v19 and in 90 days will be removed from all versions." The v19.0 changelog lists what went with it:
- the permissions
publish_to_groupsandgroups_access_member_info, - the reviewable feature named Groups API,
- "the ability for group admins to install apps on the group, even if they have an admin or developer role on the app".
The entry is marked "Applies to v19.0. Will apply to all versions April 22, 2024." and ends: "These permissions, features, and abilities will be removed April 22, 2024."
The documentation went as well. When this guide was checked, the old address of the Groups API documentation led to the front page of Meta's developer documentation, and the Group and Group feed pages of the Graph API reference led to the reference index, which lists no Group node. So there is nothing left to apply for. Being an admin of the group does not bring the API back, and neither does owning the app.
The official source today: Meta Content Library, for researchers
Public group posts are still available from Meta in one place, the Meta Content Library and its API. The library includes "Posts that appear on public groups, posted by anyone". The API finds public groups by keyword and then searches the posts made to them. This is the group search from Meta's guide:
from metacontentlibraryapi import MetaContentLibraryAPIClient as client
client.set_default_version(client.LATEST_VERSION)
response = client.get(
path="facebook/groups/preview",
params={"q": "cybercrime"},
)
display(response.json()) # Display first pageThe posts of the groups you found come from the path facebook/posts/preview, with the groups' ids in surface_ids.
Where it stops: it is for research, and it does not run on your server. To be eligible, "applicants must be affiliated with a qualified academic institution or a qualified non-academic research institution", both of them not-for-profit. An independent body reviews the application, which "can take 2 to 3 weeks", and Meta's own processing "typically takes 2 to 3 weeks" after that. The API is used from a notebook in Meta's Secure Research Environment or an approved third-party cleanroom, and the ids it returns are the library's own, which "will not match the IDs of the content on Meta platforms". Meta charges no fee for access or computation in its own environment. For a study it is the right route. For a product it is not available.
An HTTP API for public groups
Pipefetch returns the posts of a public group for one HTTPS request with one key: what the group shows a visitor who is not logged in and not a member. It is an independent service, not an official API, and it is not affiliated with or endorsed by Meta.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/facebook/group",
params={"group": "https://www.facebook.com/groups/387875758242831", "sort": "new"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print(res.json()["error"]["code"]) # no_posts or group_not_found: not charged
else:
res.raise_for_status()
data = res.json()["data"]
print(data["group"]["name"])
for post in data["posts"]:
print(post["publishedAt"], post["reactionCount"], post["commentCount"], post["url"])
print(post["text"])The limits, plainly:
- Public groups only. A private group answers 404
no_posts, as a public group without posts does. A group that does not exist answers 404group_not_found. Neither is charged. - At most 6 posts per request, in one of the orders of the group's own sort menu:
new(the default),activityortop. There is no paging beyond them, so it is for following a group, not for its archive. - 2 credits per request, because Facebook answers it only from residential internet connections, which cost more than an ordinary request. A new account has 100 free credits and needs no card.
- The group is named by its address:
https://www.facebook.com/groups/followed by the group's number or name. A bare name, a link to one post and a share link are refused before anything is charged. - It only reads. It cannot post to a group, and nothing else replaces the removed
publish_to_groupspermission either.
Each post has its text, publish time, mediaType, author, reactions in total and by type, comment and share counts, image addresses, the links in the text, the preview of a shared link and topComments: the one or two comments Facebook shows under it in the feed. Video file addresses, the prices of buy and sell posts and the list of members are not included. The reference lists every field.
Private groups
None of these routes reads a private group. A private group shows its posts to its members only, the Content Library holds public content, and the Groups API that an admin could once connect is gone.
Tools that ask for your Facebook password or cookies read the group as you. Meta's terms of service say you "may not access or collect data from our Products using automated means (without our prior permission)", and add: "regardless of whether such automated access or collection is undertaken while logged-in to a Facebook account". This guide has no advice for getting around that.
Which one should you use?
| You want | Use |
|---|---|
| To post to a group, or manage it, from an app | Nothing: the permissions for it were removed in April 2024 |
| Public group posts for academic or public-interest research | Meta Content Library |
| The latest posts of a public group in your own code | An unofficial HTTP API such as Pipefetch |
| The posts of a private group | No route |
Group posts are written by people
A Page speaks for an organisation. A group is its members talking, and posts and comments carry the public names and pictures of the people who wrote them. That is personal data under laws such as the GDPR, whichever route fetched it. Read a group for what is being discussed, keep only what that purpose needs, and do not build lists or profiles of its members: the Pipefetch terms forbid using the data to harass people or to build profiles of private individuals.
The same sentence of Meta's terms applies to reading a public group by automated means. The Content Library comes with Meta's permission. An unofficial route does not, and you are responsible for how you use what it returns.
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
APIs used in this guide
-
1 credit / 20
Facebook Comments API
The comments on a public Facebook post, video or Reel, with reactions by type, reply counts, authors and the post itself.
GET /v1/facebook/comments -
2 credits
Facebook Group Posts API
The newest posts of a public Facebook group with author, text, images, links, reactions by type and top comments.
GET /v1/facebook/group
More Facebook guides
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- How to get a Facebook Page's follower count and contact details in Python
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python