Meta removes Graph API v21.0 on January 21, 2027 and v22.0 on May 20, 2027. Calls to a removed version don’t fail outright. Meta’s rule is that they are “defaulted to the next oldest, usable version”, so your code keeps running on a version you never tested. Move every URL to v26.0, the newest version in Meta’s table, and check the few changes since v21.0 that touch messaging.
We found no public reports of breakage yet. This is the check to run before either date, for code, n8n workflows and anything else that builds graph.facebook.com/vNN.0 URLs.
The dates in Meta’s versions table
From Meta’s Graph API versions table (accessed 2026-11-24):
| Version | Released | Expires |
|---|---|---|
| v20.0 | May 21, 2024 | September 24, 2026 |
| v21.0 | October 2, 2024 | January 21, 2027 |
| v22.0 | January 21, 2025 | May 20, 2027 |
| v23.0 | May 29, 2025 | October 8, 2027 |
| v24.0 | October 8, 2025 | February 18, 2028 |
| v25.0 | February 18, 2026 | July 29, 2028 |
| v26.0 | July 29, 2026 | TBD |
The pattern follows Meta’s versioning guide (accessed 2026-11-24). “Each version is guaranteed to operate for at least two years.” A version “will no longer be usable two years after the date that the subsequent version is released.” v22.0 came out on January 21, 2025, which is why v21.0 ends on January 21, 2027.
The v26.0 changelog repeats the first date: “January 21, 2027: Graph API v21.0 is deprecated and removed.” Its advice is “To avoid disruption, migrate calls to the latest API version.” The Marketing API “has its own versioning scheme”, so ad and campaign calls follow a different table.
What Meta does with a call to a removed version
The versioning guide answers it in one sentence. “For APIs, once a version is no longer usable, any calls made to it will be defaulted to the next oldest, usable version.”
Today, November 24, 2026, v20.0 is already gone and v21.0 is the oldest usable version. A call to v19.0 or v20.0 runs as v21.0. From January 21, 2027, the same call and every v21.0 call run as v22.0. From May 20, 2027, they run as v23.0.
Our reading of that rule: a pinned old version won’t return a sudden 404. Response shapes can change under your code with no error to tell you, and a redirected call looks like a working call in your logs.
The same guide covers unversioned calls:
- “An unversioned call uses the version set in the app dashboard Upgrade API Version card under Settings > Advanced.” Check that card, since it governs any URL without
/vNN.0. - The Facebook SDK for JavaScript doesn’t accept unversioned calls. The Portuguese edition of the guide says so directly.
FB.initalways needs aversion.
Meta doesn’t say which version shapes webhook payloads, or what happens to them when the version they follow is removed. Neither the WhatsApp webhooks overview nor the Graph webhooks pages cover it. Treat any claim about webhook versioning as unconfirmed.
Find every hardcoded version
Versions hide in four places: HTTP client base URLs, copied Meta samples, environment files and low-code workflow exports. This Python script walks the paths you give it and reports each graph.facebook.com/vNN.0 with its removal date. It also catches GRAPH_VERSION and API_VERSION settings in code and .env files, and flags three legacy parameters from the v26.0 protocol cleanup below. date_format also matches unrelated variable names, so read each hit.
# find_graph_versions.py
# Run: python3 find_graph_versions.py PATH [PATH ...]
import datetime
import os
import re
import sys
# Expiry dates from Meta's Graph API versions table, accessed 2026-11-24.
EXPIRES = {
20: datetime.date(2026, 9, 24),
21: datetime.date(2027, 1, 21),
22: datetime.date(2027, 5, 20),
23: datetime.date(2027, 10, 8),
24: datetime.date(2028, 2, 18),
25: datetime.date(2028, 7, 29),
26: None,
}
VERSION_RE = re.compile(r"(?:graph\.facebook\.com/|(?:GRAPH|API)_VERSION\W{1,5})v(\d+)\.0")
LEGACY_RE = re.compile(r"date_format|/\?ids=|If-None-Match")
SKIP_DIRS = {".git", "node_modules", ".venv", "venv", "dist", "build", "__pycache__"}
MAX_BYTES = 2_000_000
def describe(major, today):
if major < min(EXPIRES):
return "older than v20.0, already removed"
if major not in EXPIRES:
return "not in Meta's versions table"
expires = EXPIRES[major]
if expires is None:
return "current, no removal date"
if expires <= today:
return f"removed on {expires}"
return f"removed on {expires}, {(expires - today).days} days left"
def files_under(paths):
for root in paths:
if os.path.isfile(root):
yield root
continue
for dirpath, dirnames, filenames in os.walk(root):
dirnames[:] = [d for d in dirnames if d not in SKIP_DIRS]
for name in filenames:
yield os.path.join(dirpath, name)
def scan(path, today):
try:
if os.path.getsize(path) > MAX_BYTES:
return 0
with open(path, encoding="utf-8") as f:
lines = f.readlines()
except (OSError, UnicodeDecodeError):
return 0
hits = 0
for number, line in enumerate(lines, start=1):
for match in VERSION_RE.finditer(line):
major = int(match.group(1))
print(f"{path}:{number}: v{major}.0 ({describe(major, today)})")
if EXPIRES.get(major, "x") is not None:
hits += 1
for match in LEGACY_RE.finditer(line):
print(f"{path}:{number}: legacy parameter {match.group(0)}")
hits += 1
return hits
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.exit("usage: python3 find_graph_versions.py PATH [PATH ...]")
today = datetime.date.today()
total = sum(scan(p, today) for p in files_under(sys.argv[1:]))
print(f"{total} line(s) to review")
sys.exit(1 if total else 0)
It exits with status 1 when it finds a version other than v26.0 or a legacy parameter, so you can run it in CI. Point it at your repository and at a folder of exported n8n or Make workflow JSON files. Expect some hits in copied samples. Two of our own Academy articles quote Meta samples pinned to v19.0 and v18.0: the reply and reactions guide and the Flows guide.
The fix in each file is a string change to v26.0. Keep the version in one GRAPH_VERSION setting, as the Python and Node.js send guides do. The next upgrade then touches one line.
n8n HTTP Request nodes and the built-in WhatsApp node
HTTP Request nodes carry the version in their URL field, so the scanner finds them in exported workflow JSON. Change each to https://graph.facebook.com/v26.0/..., as in sending interactive buttons from n8n.
The built-in WhatsApp Business Cloud node is different, because you can’t edit its URL. Its source on n8n’s master branch (read 2026-11-24) sets WHATSAPP_BASE_URL to https://graph.facebook.com/v13.0/. Its request helper and token call use v19.0.
Both versions are past their removal dates. Our inference from Meta’s redirect rule is that the node already runs on v21.0 today. It will move to v22.0 on January 21, 2027, with no change in n8n. Neither n8n nor Meta has said this. We found no n8n issue about it.
If a workflow depends on a specific response field from the node, test it after each removal date. For anything version-sensitive, a pinned HTTP Request node gives you control the built-in node doesn’t.
What changed between v21.0 and v26.0 for messaging
Very little in the version changelogs touches WhatsApp, Messenger or Instagram messaging. The largest item applies to every version, not only v26.0.
| Version | Change near messaging | Source |
|---|---|---|
| v22.0 | Instagram v1.0 endpoints deprecated; Instagram insights metrics impressions and plays deprecated |
v22.0 changelog |
| v23.0 | “Added a new Cloud API error code” and “four new Marketing Messages Lite API error codes” | v23.0 changelog |
| v24.0 | Messenger lead form creation through POST /{page-id}/messenger_lead_forms deprecated |
v24.0 changelog |
| v24.0 | conversation object omitted from delivered and read status webhooks |
groups pricing |
| v25.0 | Webhooks mTLS moves to a new Meta CA, with a trust store deadline of March 31, 2026 | v25.0 changelog |
| v26.0 | Legacy protocol features removed | v26.0 changelog |
All sources accessed 2026-11-24. The conversation line comes from Meta’s group messaging pricing page. Check the status webhook reference before you assume the same for 1:1 messages. If your billing code reads conversation.id from status webhooks, that’s the field to test first. Read pricing.type and pricing.category instead.
The v25.0 mTLS deadline has passed. If your webhook endpoint uses mutual TLS and still trusts only the old CA, Meta says the result is “TLS handshake failures”.
The v26.0 protocol cleanup already reached your version
The v26.0 section “Legacy Graph API protocol features deprecated” says it “Applies to v26.0+ beginning July 29, 2026.” It also “Applies to all remaining supported Graph API versions beginning October 27, 2026.” Staying on v21.0 doesn’t protect you from these:
- “Requests that include
date_formatreturn an error.” - “Root requests using
GET /?ids=...return an error.” Meta says to “Use per-object requests or supported batching.” - “The
prettyquery parameter is ignored” and “Thedebugquery parameter is ignored”. Thedebug_tokenendpoint “is unaffected.” - “The
If-None-Matchquery parameter is ignored.” “LegacyETagresponse headers and304 Not Modifiedbehavior are removed, and requests return full responses.”
Meta gives no error code for the date_format and ?ids= failures, so match on the HTTP status and log the body. A client that cached responses on ETag now downloads the full body every time, which shows up as bandwidth, not errors.
Fields on their way out
Meta’s group pricing page says billable “will be deprecated in a future versioned release” and points to pricing.type with pricing.category. The version isn’t named.
The account model evolution page (accessed 2026-11-24) plans a “New Graph API version” for the first half of 2027. In it, the “Newest Messages API version requires messaging_account_id for multi-Messaging account setups”. “Older Messages API versions still accept calls without it.” Separately, paid_messaging_account_id is a “deprecated, backward-compatible alias”, and Meta says to “migrate to messaging_account_id by December 31, 2026.”
About v27.0
You’ll see v27.0 in two Meta places. The Messenger changelog (accessed 2026-11-24) says “The latest version is: v27.0”, and Meta’s Embedded Signup implementation page tells you to set the SDK to “v27.0”. The Graph API versions table has no v27.0 row, and the version27.0 changelog URL returns 404.
Use v26.0 until v27.0 appears in the versions table with a changelog. The Embedded Signup side of that contradiction is in migrate to Embedded Signup v5.
The upgrade, in order
- Run the scanner on your code and workflow exports, and change every hit to v26.0.
- Check the Upgrade API Version card under Settings > Advanced for unversioned calls.
- Remove
date_format, root?ids=requests and anyETagcaching. - Send one text and one template on v26.0 and compare the status webhooks with what your parser expects.
- Re-run the scanner in CI so the old versions don’t come back.
Step 4 needs a working token for each account you test. If you’re auditing credentials in the same pass, Cloud API access tokens covers system user and business tokens. A public issue in another project, waku-agent#420, tracks the same January 21, 2027 date for one Python file.
What Meta has not documented
Meta doesn’t say how webhook payloads relate to API versions, or what happens to them when a version is removed. It publishes no release date or changelog for v27.0. It gives no error code for the removed date_format and ?ids= behavior. The redirect rule is one sentence in the versioning guide, with no example of a response from a redirected call. Recheck the versions table before each removal date.
Z-API Omni team