GET /{ig-user-id}/media: Error Fetching Insights for Reels Media Type
Problem
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?
Endpoint
GET /{ig-user-id}/media v18.0 https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media
Request Sample
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}
Response
{
"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=
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...
Hi guys, the same for me...
Hi guys, the same for me...
Hi guys, the same for me...