With the old /reportstats
endpoint you could fetch actions grouped per target name by adding action_target_name
to the group options. This would give you a list of targets and their actions. In the new API endpoint /insights
, only action_target_id
is available as group option. The target can be anything, e.g. a post, a pixel, etc. but there is no type indication returned, so all you have is an ID and some actions...
So, when grouping actions by action_target_id
, is there any way to get the target's name that belongs to the ID?