Reading Facebook Dark Posts through Graph API

点点圈 提交于 2020-05-11 11:18:14

问题


Darks posts are promoted unpublished posts on facebook. Basically it's a marketing tool to post ads. Thing is when a person comments on a dark post it does not show up in their notifications.

Is there an API call to show the comments written to Facebook Dark posts? I have tried /promotable_posts?include_hidden=true and others but have not found a syntax that pulls up the dark posts let alone the comments associated with them. Any Help would be appreciated.

(I have done something similar for public posts so I am familiar with calling and testing the facebook API.)


回答1:


You were almost there, just that because of unclear Facebook documentation, you were unable to find it. In the documentation, just below include_hidden is an include_inline option which is described as

Used with the promotable_posts edge only. Filters by whether the post was created inline via object_story_spec in the Ads API. This used to be called is_inline

/promotable_posts?include_inline=true

On calling this endpoint, you get all the dark posts of the page. This end point returns the dark posts even if you do not have the ads_management scope in your page access token.




回答2:


For the new versions of Graph API

/{page-id}/ads_posts?include_inline_create=true

You'll get all ads posts, Dark Posts also included ;)



来源:https://stackoverflow.com/questions/34934619/reading-facebook-dark-posts-through-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!