I'm trying to access FB Audience Insights via Graph API similar to what is shown in the 'Facebook Business' (https://www.facebook.com/business/news/audience-insights).
This looks like it's possible as documented in the Graph API docs page here.
I have seen some similar questions about this, but there seems to be no clear answer, so I decided to write a new one.
What I have currently:
- by calling
me/adaccounts
I get all ad accounts - accounts are returned successfully - by calling
<adAccountId>/customaudiences
I get custom audiences for each ad account - custom audiences are returned successfully - by calling
<customAudienceId>?fields=fields=approximate_count,data_source,name,pixel_id,time_content_updated
I get certain info about the specific audience - returns successfully - If my understanding is correct (probably not), I should be able to get audience insights with custom audience id, but I can't figure out how to construct the url shown in the docs:
...?fields={fieldname_of_type_AudienceInsightsQuery}
. I am interested in all breakdowns but I'm happy to start with demografic information, so I guess something like this...?fields=age_by_gender
. But as said I'm stuck with what comes in place of...