2

I am able to get all the page posts that can be promoted via the endpoint given at https://developers.facebook.com/docs/marketing-api/campaigns/objectives#connection_objects

eg query:

https://graph.facebook.com/v2.5/[PAGE-ID]/promotable_posts?fields=id&is_published=true&access_token=[TOKEN]

but how do I get all the posts that are already promoted? I am unable to find anything on the FB API docs.

4

1 回答 1

5

没有简单的方法可以做到这一点,因为帖子和广告之间没有关联。

执行此操作的最简单方法可能是请求一个帐户的所有广告素材及其 object_story_id:

/<VERSION>/act_<ACCOUNT_ID>/adcreatives?fields=object_story_id

然后请求帐户内的所有广告以及广告素材并参考是否匹配:

/<VERSION>/act_<ACCOUNT_ID>/ads?fields=id,creative
于 2015-12-02T15:33:53.010 回答