fix(instagram): request views instead of retired plays for Reels - #319
Open
maciejdzierzek wants to merge 1 commit into
Open
fix(instagram): request views instead of retired plays for Reels#319maciejdzierzek wants to merge 1 commit into
views instead of retired plays for Reels#319maciejdzierzek wants to merge 1 commit into
Conversation
Meta removed `plays` from Instagram media insights in Graph API v25. Asking for it makes the whole per-post metrics request fail, so Reels report no metrics at all — the request errors out rather than degrading to a partial result. `views` is the replacement metric and is available on the same edge, so this is a drop-in rename with no other changes needed. Verified against live Graph API v25: probing the media insights edge with `plays` returns an error naming the allowed metric set, which includes `views` and no longer includes `plays`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instagram Reels currently report no metrics at all, because the per-post insights request asks for
plays.Meta retired
playsfrom Instagram media insights in Graph API v25. It is not ignored — including it makes the entire request fail, so the response never carries the other metrics either (reach,likes,comments,shares,saved). The failure surfaces as an unsupported/error result rather than partial data, which makes it easy to mistake for "Meta has not populated the numbers yet".viewsis the documented replacement and lives on the same edge, so this is a drop-in rename.How I verified
Probing the media insights edge on a live Business account against v25:
plays→ error response, whose message enumerates the allowed metric setviewsand no longer containsplaysRunning this in production since 2026-08-04; Reel metrics have been flowing since (previously every Reel came back empty).
Feed posts have a separate but related problem with the retired
post_impressions*family — I will send that as its own PR to keep this one reviewable.