问题
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