BestPaid guides · Meta · Graph API and Facebook SDK

Graph API v21.0 is removed on January 21, 2027: find pinned versions and upgrade the Facebook SDK and server calls

Meta removes Graph API v21.0 on January 21, 2027, v22.0 on May 20, 2027 and v23.0 on October 8, 2027. Calls pinned to a removed version are then answered by the oldest version still available, picking up its changes with no change in your code.

Sources: Meta's Graph API changelog (last updated October 29, 2026), the v27.0 (October 28, 2026), v26.0 (July 31, 2026) and v23.0 (January 15, 2026) changelogs and the v27 announcement (November 4, 2026); the Platform Versioning, Upgrade and Debug Requests pages and the App Dashboard Advanced Settings page (February 12, 2025); the Marketing API versioning (June 24, 2026) and changelog pages; the getting-started pages for iOS (June 30, 2026) and Android (July 10, 2023); Meta's SDK changelogs for iOS, Android and Unity, the SDK source at each release tag (for example iOS 19.0.1, and Android 19.0.1 ServerProtocol.kt and FacebookSdk.kt) and the Android artifacts on Maven Central; and the Business SDK 21.0.5 source for Python and Node.js. Checked on November 25, 2026. This page is our own summary; follow the vendor's documentation for every detail.

The dates as Meta states them

Graph API versionIntroducedAvailable until
v21.0October 2, 2024January 21, 2027
v22.0January 21, 2025May 20, 2027
v23.0May 29, 2025October 8, 2027
v24.0October 8, 2025February 18, 2028
v25.0February 18, 2026July 29, 2028
v26.0 and v27.0July 29, 2026 and November 4, 2026TBD

Meta's versioning guide says a version stops working two years after the next one ships, but the table doesn't always match that rule to the day: v22.0's May 20, 2027 is nine days before the second anniversary of v23.0's release, so go by the table. So far the v23.0 date appears only in that table; the v23.0 changelog page still gives the Graph API "Available until TBD", and the v27.0 changelog and announcement list only the v21.0 and v22.0 removals.

The v27.0 changelog's Meta Business SDK notes also list Facebook Platform SDK v21.0 as deprecated in January 2027 and v22.0 in May 2027, with no day, no definition of the name and nothing yet for v23.0. Business SDKs carry the API version in their number (Python and Node.js 21.0.5 call v21.0); the iOS and Android SDKs, now at 19.0.1, don't.

What happens to a call pinned to a removed version

Who is affected

Find every pinned version

# Versioned URLs and dialog paths
grep -rnE "facebook\.com/v[0-9]+\.[0-9]+" --exclude-dir={.git,node_modules,Pods,build} .

# Version settings and constants
grep -rnE "graphAPIVersion|setGraphApiVersion|FB\.init|['\"]v(1[0-9]|2[0-3])\.0['\"]" --exclude-dir={.git,node_modules,Pods,build} .

# Facebook SDK versions your apps resolve
grep -rn --include=Package.resolved -A5 "facebook-ios-sdk" .
grep -n "FBSDKCoreKit" Podfile.lock
./gradlew :app:dependencies | grep "com.facebook.android"

Upgrade the Facebook SDK for iOS and Android

Server calls

Keep the version in one setting and change it once:

# Python: one setting for the version ("v27.0" is an example)
import os
GRAPH_VERSION = os.environ.get("META_GRAPH_VERSION", "v27.0")
BASE_URL = f"https://graph.facebook.com/{GRAPH_VERSION}"

# Shell: which version answered?
curl -s -G -D - -o /dev/null -d "access_token=$META_TOKEN" \
  "https://graph.facebook.com/v27.0/me" | grep -i facebook-api-version

With a Business SDK, upgrade to the release line for your target. Move Marketing API calls to v26.0 or later; the Marketing API changelog ends v25.0 on February 23, 2027 (the Graph API changelog says TBD).

Test against the changelog

Order of work

  1. Inventory: code, SDK versions, the dashboard default, the API Upgrade Tool, Marketing API calls.
  2. Pick one target. Meta advises the latest version, v27.0 as of November 25, 2026, which clears all three 2027 removals at once.
  3. Mobile first: Meta notes that people may take a long time to update an app, or never do, so ship well before January 21, 2027.
  4. Then servers, Business SDKs and the dashboard default, with Marketing API calls moved before February 23, 2027.
  5. Assert on facebook-api-version in tests, alert on X-Ad-Api-Version-Warning, and re-read the changelog before May 20 and October 8, 2027.
Facebook SDK or Graph API calls still on v21.0? We update native, Unity, Flutter, React Native and Xamarin apps to current SDKs at a fixed price, including ad and social SDKs. You keep your signing keys. It starts with a $290 check and a fixed quote within 2 business days.
See the app update offer