The short answer
Graph API v21.0 stops being available on 21 January 2027. Any Messenger, Instagram or WhatsApp integration that hard-codes /v21.0/ in its URLs should move to a current version now, then retest webhooks and permissions.
Last verified: 25 October 2026 against Meta's Graph API changelog, versioning guide and the v26.0 launch post on developers.facebook.com.
Meta's announcement of v26.0 on 29 July 2026 states it plainly: "January 21, 2027: Graph API v21.0 will be deprecated and removed from the platform. To avoid disruption, migrate all calls to the latest API version." The same post notes that the Facebook Platform SDK v21.0 is deprecated in January 2027 as well.
Here is the current version table from the Graph API changelog:
| Version | Released | Available until |
|---|---|---|
| v26.0 (latest) | 29 July 2026 | TBD |
| v25.0 | 18 February 2026 | 29 July 2028 |
| v24.0 | 8 October 2025 | 18 February 2028 |
| v23.0 | 29 May 2025 | 8 October 2027 |
| v22.0 | 21 January 2025 | 20 May 2027 |
| v21.0 | 2 October 2024 | 21 January 2027 |
| v20.0 | 21 May 2024 | 24 September 2026 (expired) |
Notice that v22.0 is next, and it expires only four months later, on 20 May 2027. Moving from v21.0 to v22.0 is the smallest change but buys you almost nothing. Plan to land on v25.0 or v26.0.
What actually happens on 21 January 2027
The answer is less dramatic than "shuts off", and that is exactly what makes it risky. Meta's versioning guide says: "For APIs, once a version is no longer usable, any calls made to it will be defaulted to the next oldest, usable version."
So a call to https://graph.facebook.com/v21.0/me/messages on 22 January will most likely not return a clean "version expired" error. It will be served by the next oldest available version, which on that date is v22.0. Your code keeps sending v21-shaped requests and gets v22-shaped behaviour. Anything that changed between those versions changes for you on that day, without a deploy on your side.
Meta's other guarantees, from the same guide:
- Two-year life. "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."
- Unversioned calls (no
/vXX.0/in the path) "use the version set in the app dashboard Upgrade API Version card under Settings > Advanced." Meta recommends you "always specify the version where possible." - Older versions can be called "as long as they are available and your app has made calls to that version." In other words, an app can only fall back to older versions it has already called, so make your first calls to the new version well before the deadline.
The Marketing API has its own, separate version schedule. If your bot also manages ads (for example Click-to-Messenger or Click-to-WhatsApp campaigns), check that schedule separately; the dates in this article are Graph API dates.
Which bots are affected
All three messaging products sit on the Graph API, so the same deadline applies to each:
| Product | Typical host and path | Where v21.0 hides |
|---|---|---|
| Messenger Platform | graph.facebook.com/v21.0/me/messages | Send API calls, Page subscriptions, user profile lookups |
| Instagram messaging (Facebook Login) | graph.facebook.com/v21.0/<IG_ID>/messages | Send API, conversations, media lookups |
| Instagram API with Instagram Login | graph.instagram.com/... | Check the version segment in every call |
| WhatsApp Cloud API | graph.facebook.com/v21.0/<PHONE_NUMBER_ID>/messages | Send, templates, media upload, phone number registration |
Meta's Messenger changelog says the Messenger Platform "follows Graph API Versioning", and the WhatsApp changelog ties its changes to Graph API versions (for example, changes that apply "for version 24.0 and newer requests"). For graph.instagram.com, Meta's docs confirm the host but we could not find an explicit statement of its version policy, so treat it the same way and test it.
You are probably affected if any of these are true:
- Your code, environment variables or config contain the literal string
v21.0. - You pinned a Graph SDK or the Facebook JavaScript SDK (
FB.init({ version: 'v21.0' })) in late 2024 or early 2025. - Your app was built between October 2024 and January 2025, when v21.0 was the newest version, and nobody has touched the version since.
- You make unversioned calls and your app dashboard default is v21.0.
If you connect your Page or number through a hosted chatbot builder or a WhatsApp Business Solution Provider, the API version is the vendor's code, not yours. Ask them which version they call; you do not need to change anything yourself.
Changes between v21 and v26 that touch messaging bots
Most version-to-version changes are about ads, insights and Pages, not messaging. These are the ones we found in Meta's changelogs that a Messenger, Instagram or WhatsApp bot can trip over:
| Change | Applies from | Who it hits |
|---|---|---|
WhatsApp status webhooks no longer include the conversation object | v24.0+ requests | Billing or analytics code that reads statuses[].conversation.id |
WhatsApp messaging_limit_tier returns the business portfolio limit; new whatsapp_business_manager_messaging_limit field | v24.0+ | Dashboards that track messaging limits per number |
| New WhatsApp error code 132018 | v23.0+ | Template error handling with an exhaustive switch |
Instagram v1.0 API endpoints deprecated; metrics such as impressions and plays deprecated | v22.0+ | Instagram integrations that also pull insights |
| Page recommendations deprecated, Page ratings webhooks no longer sent | v22.0+ | Bots that reacted to Page reviews |
Legacy protocol features removed: pretty/debug ignored, date_format and GET /?ids= return errors, ETag/304 removed | All versions from 27 October 2026 | Older HTTP clients and batch lookups |
Two dated changes also matter, though they are not tied to v21: Meta's new webhooks mTLS certificate (servers that pinned the old trust store "will stop receiving all webhooks events" after 31 March 2026), and the Messenger changelog's removal of Handover Protocol support for Instagram (23 October 2025). If your webhooks went quiet in 2026 and you are reading this while debugging, start there.
If you jump straight from v21.0 to v26.0, all of the above applies at once. That is fine, but read the per-version changelog pages for v22.0 to v26.0 before you switch, and search them for the endpoints you actually call.
The upgrade checklist
- Find every version string. Search code, infrastructure config and secrets managers:
grep -rnE "v2[0-1]\.0|graph\.(facebook|instagram)\.com" .Do not forget serverless functions, cron jobs, Zapier or n8n HTTP steps, and Postman collections that someone runs in production. - Centralise it. Replace scattered literals with one constant or environment variable (for example
GRAPH_API_VERSION=v26.0) so the next upgrade is a one-line change. - Run Meta's API Upgrade Tool. "The API Upgrade Tool shows the API calls from your app that may be affected by changes in newer versions of the API." Select your app, choose upgrade from v21.0 and to your target version, and work through the list.
- Check the dashboard default. In the App Dashboard, open Settings > Advanced and find Upgrade API Version. This controls unversioned calls. Meta offers two steps: upgrading developers and admins first, then all calls. Use the first one as your staging step.
- Move the webhook subscriptions. Webhooks are versioned too: since v2.9, "Webhooks versions are now the same as Graph API." Each subscribed field shows its version in the app's webhook settings. Change it to the target version so payloads match what your parser expects, then send a test event.
- Retest tokens and permissions. Call
GET /debug_tokenwith each Page, system user and Instagram token you hold and confirm the scopes are still granted:pages_messaging,instagram_manage_messages,whatsapp_business_messagingandwhatsapp_business_managementas applicable. - Run your message matrix. For each channel: receive a text, send a text, send media, send a template (WhatsApp), handle a postback or quick reply, and receive a delivery status. Compare payloads against what you logged under v21.0.
- Ship before 21 January. Ideally in early January, with time to roll back. A rollback to v21.0 after the deadline is not possible.
A worked example: one constant, three channels
The most common shape we see in older bots is a version string copied into every file that talks to Meta. Here is what that looks like, and the change that makes this the last painful upgrade.
// before: three copies of the version, one per channelawait fetch(`https://graph.facebook.com/v21.0/me/messages?access_token=${PAGE_TOKEN}`, ...);await fetch(`https://graph.facebook.com/v21.0/${IG_ID}/messages`, ...);await fetch(`https://graph.facebook.com/v21.0/${PHONE_NUMBER_ID}/messages`, ...);// after: one version, token in a header instead of the query stringconst GRAPH = `https://graph.facebook.com/${process.env.GRAPH_API_VERSION || "v26.0"}`;const headers = (t) => ({ Authorization: `Bearer ${t}`, "Content-Type": "application/json" });await fetch(`${GRAPH}/me/messages`, { method: "POST", headers: headers(PAGE_TOKEN), body });await fetch(`${GRAPH}/${IG_ID}/messages`, { method: "POST", headers: headers(PAGE_TOKEN), body });await fetch(`${GRAPH}/${PHONE_NUMBER_ID}/messages`, { method: "POST", headers: headers(WA_TOKEN), body });Moving the token out of the query string is not required by the version change, but it is worth doing in the same pass: query strings end up in proxy logs, error trackers and browser history, and an upgrade is the one time everyone is already reading this code.
Then roll out in two steps. Set GRAPH_API_VERSION to the new version in staging and run the message matrix from the checklist. Once that passes, change it in production and leave the old value noted in the deploy log so a rollback is one variable away (until 21 January, when v21.0 is no longer a rollback target). Keep a log line that prints the version on startup; when Meta's next deadline arrives, you will know in seconds which services still run the old one.
Finally, add a test that fails the build if a literal /v2 version string appears anywhere outside the constant. It is a crude check, and it is the one that stops the next copy-paste from undoing all of this.
Errors you might see after upgrading
Version upgrades rarely produce new error codes; they surface old ones because a field or permission moved. The usual suspects:
| Error | Usually means after an upgrade | Reference |
|---|---|---|
(#100) Invalid parameter | A field or parameter you send was renamed or removed in the new version | Messenger 100 |
(#10) permission errors | A permission is now required, or Advanced Access is missing | Messenger 10 |
(#190) invalid OAuth token | Token expired or was revoked while you were changing apps | Messenger 190, Instagram 190 |
(#200) permissions error | The token lacks a scope the endpoint now checks | Messenger 200 |
WhatsApp 131000, 131009 | Generic send failure, or a parameter value is invalid | WhatsApp 131009 |
Full lists with fixes: the Messenger error code reference, the Instagram error code reference and the WhatsApp Cloud API error codes. If the upgrade is clean but your bot is still silent, work through our Messenger bot not responding guide, which covers Page subscriptions and the webhook checks that a version change can disturb.
Also watch your sending volume during the switch. A retry loop on a failing endpoint can push you into rate limits; the Messenger limits and WhatsApp limits pages list what applies.
Which version should you move to?
Pick by how often you want to do this again:
- v26.0 is the latest ("The latest Graph API version is: v26.0"). Its end date is not yet set, but under the two-year rule it will run until two years after v27.0 ships. Choose it if you are testing anyway.
- v25.0 has a published end date of 29 July 2028. Choose it if your change control prefers a version that has been out longer.
- v22.0 to v24.0 are not worth it. You would be back on this checklist within 4 to 16 months.
Whatever you pick, put the next deadline in a calendar. Meta has shipped two or three Graph API versions a year, so a bot that pins a version needs someone who owns the upgrade on a schedule. If no one in your team will own that, a hosted platform that tracks Meta's versions for you is worth considering. The Messenger chatbot, Instagram chatbot and WhatsApp chatbot pages show how Conferbot connects each channel, and the Free plan covers 600 conversations a month.
Was this article helpful?
Build and deploy in 10 minutes. No coding needed.
Graph API v21.0 Shuts Off on 21 January 2027 FAQ
Everything you need to know about chatbots for graph api v21.0 shuts off on 21 january 2027.
About the Author
The Conferbot team writes about building, deploying, and improving AI chatbots.
View all articlesRelated Articles
From the reference shelf
Fact-checked reference pages and free tools for the platform this article covers.