I am trying to fetch Insights data along with media data using the Media API. However, when the response includes media with media_product_type: 'REELS', the error occurs.
Is this a bug? If not, could you please advise on how to handle this issue?
GET /{ig-user-id}/media v18.0 https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media
https://graph.facebook.com/v18.0/{ig-user-id}/media?fields=id,media_type,media_product_type,timestamp,like_count,comments_count,media_url,thumbnail_url,children%7Bmedia_url%7D,caption,permalink,insights.metric(impressions,profile_visits,follows,reach,saved)&limit=25&access_token={access_token}
{
"error": {
"message": "(#100) The Media Insights API does not support the impressions, profile_visits, follows metric for this media product type.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A9hTiVk7AgYkpTBap84AC8c"
}
}
The same issue has occurred for me since 2024-07-25 22:05:00 (UTC).
I am not sure if this is a bug or a change in the specification, but to reduce the number of requests to the API, I want to obtain insights simultaneously with medias. This type of error is problematic for me.
GET /{ig-user-id}/media?fields=id,insights.metric(impressions)&access_token=<ACCESS_TOKEN>
same here, two problems:
- unable to fetch media and insights in a single request any more (need to send multiple requests for fetching Insights on multiple medias)
- impressions metric is not available for Reel any more (getting this error: '(#100) The Media Insights API does not support the impressions metric for this media product type.'
)
For another user, the error (#100) The Media Insights API does not support the total_interactions, shares metric for this media product type.
also occurs. I haven't thoroughly investigated it yet, but it seems that when a FEED is included, requesting the total_interactions and shares metrics results in an error.
This issue also occurs with /{ig-user-id}/stories
, and the impact is significant, which is problematic for me.
same issue for metric "plays" when the response includes media with media_product_type: 'FEED'.
before the issue occured there was simply no entry for that metric in the response
Same issue here, I get the error: {"error":{"code":100,"message":"(#100) The Media Insights API does not support the impressions metric for this media product type.","error_subcode":null,"type":"OAuthException"}}
same for me as well.
{'error': {'message': '(#100) The Media Insights API does not support the plays metric for this media product type.', 'type': 'OAuthException', 'code': 100, 'fbtrace_id': 'A3fZxEdwyyMzhURx8Ih-lJN'}}
Now the problem is - how do I read insights for all media types at once. Also there is no filter made available to query a particular media type.
This is really frustrating.
Hello,
This problem was resolved on 7/27. Please see the report below for details.
https://developers.facebook.com/support/bugs/1689100101861703/
same here
We should post the examples and comments in the bug ticket, I don't think facebook monitors the forums much
https://developers.facebook.com/support/bugs/1689100101861703/
Same! Please confirm this is a bug and/or advise on a resolution path. Bulk media+insights are essentials as there's no way to filter by product type.
Same! Every day there is a new problem
Hi guys, the same for me...
==== Query curl -i -X GET \ "https://graph.facebook.com/v15.0/XXXXXX/media/?fields=insights.metric(impressions%2C%20reach%2Ctotal_interactions%2Cshares%2Cvideo_views%2Csaved%2Clikes)%2Ccomments_count%2Cmedia_product_type%2Clike_count%2Cmedia_type%2Ctimestamp%2Cmedia_url%2Cthumbnail_url%2Ccaption%2Ccollaborators&since=1719360000&until=1722038340&after=&access_token=" ==== Access Token Info { "perms": [ "email", "read_insights", "pages_show_list", "business_management", "instagram_basic", "instagram_manage_comments", "instagram_manage_insights", "instagram_content_publish", "pages_read_engagement", "pages_manage_metadata", "public_profile" ], "user_id": "XXXXX", "app_id": XXXXXX } ==== Parameters - Query Parameters
{ "fields": "insights.metric(impressions, reach,total_interactions,shares,video_views,saved,likes),comments_count,media_product_type,like_count,media_type,timestamp,media_url,thumbnail_url,caption,collaborators", "since": "1719360000", "until": "1722038340", "after": "" } - POST Parameters
{} ==== Response { "error": { "message": "(#100) The Media Insights API does not support the impressions metric for this media product type.", "type": "OAuthException", "code": 100, "fbtrace_id": "Ac15IkgfP86JWvbEIyQPqa3" } } ==== Debug Information from Graph API Explorer - https://developers.facebook.com/tools/explorer/?method=GET&path=17841406415606235%2Fmedia%2F%3Ffields%3Dinsights.metric(impressions%2C%20reach%2Ctotal_interactions%2Cshares%2Cvideo_views%2Csaved%2Clikes)%2Ccomments_count%2Cmedia_product_type%2Clike_count%2Cmedia_type%2Ctimestamp%2Cmedia_url%2Cthumbnail_url%2Ccaption%2Ccollaborators%26since%3D1719360000%26until%3D1722038340%26after%3D&version=v15.0
Same issue since yesterday. It look like the edge insight was modified and now only access the fields supported by the media type (before it was returning NULL if no value).