Facebook Ads Ad Comments - Data API Endpoint

Ad Comments by effective object story id, access token and pagination cursor.

Get bulk Ad Comments data from the Facebook Ads API | Official API: https://developers.facebook.com/docs/marketing-apis | 👥  Contributors: steve 🚩  Report

✏️ Inputs

Effective Object Story ID effective_object_story_id Required

Use the Facebook Ad Creative Endpoint: https://stevesie.com/apps/facebook-ads-api/ad-creative to get this value from the ad object ID and look for effective_object_story_id in the output.

E.g. 582930622120582_1078210805925895
Access Token access_token Required

Your user access token that has permission to read the comments of posts from your page.

You can generate this token here: https://developers.facebook.com/tools/explorer/

You need to then select your page you use for running ads and make sure you have the following permissions:

  • pages_read_engagement
  • pages_read_user_content
E.g. EAAhbBMCGY... (very very long string)
Pagination Cursor cursor Optional

Pagination cursor. Run this initially without a cursor then look for the value under paging.cursors.after and re-use that here to get the next page.


📝 Notes

Posted by steve on June 29, 2022, 6:31 a.m. 🚩  Report

⚡️ Endpoint

GET https://graph.facebook.com/v9.0/{{effective_object_story_id}}/comments?access_token={{ access_token }}&summary=true&after={{ cursor }}