Reputation: 1511
I am the admin of my companies Facebook page. I'm trying to get all the ads for the Facebook page using the Graph API. The access token that I use has the following permissions:
How can I get the comments below the ads posts?
This is what I tried using Graph API:
my_page_ID/ads_posts
What I get is this:
{
"data": [
{
"created_time": "2020-03-26T14:42:38+0000",
"message": "We have the best price. Please come to us!",
"id": "4353425346_5634563463622263"
},
{
"created_time": "2020-03-26T12:28:35+0000",
"message": "This is some add",
"id": "65464567_687456456"
},
{
"created_time": "2020-03-26T12:19:34+0000",
"message": "This is the message of the ad.",
"id": "123456789_463456534623"
},
{
"created_time": "2020-03-20T08:06:44+0000",
"id": "34534588605_358563733107"
},
{
"created_time": "2020-03-20T08:06:44+0000",
"id": "388533217888605_3586754538066441"
},
{
"created_time": "2020-03-20T08:06:44+0000",
"id": "34353417888605_5844534530"
},
{
"created_time": "2020-03-20T08:06:44+0000",
"id": "38854535405_230852376563421"
},
{
"created_time": "2020-03-20T08:06:18+0000",
"id": "382342345605_358677843899"
What I do not understand:
Why are most fields empty? Am I doint sth. wrong? Do I need more permissions?
How can I retriev all ads posts and not just a few?
How can I retriev the user comments below these posts?
Hope you can help me with this.
Upvotes: 0
Views: 1625
Reputation: 1884
Easy peasy!
/{page-id}/ads_posts?include_inline_create=true
Includes all Ads Posts (Dark Posts)
Upvotes: 2