简体   繁体   中英

Facebook PHP SDK v4 - Getting back only page's scheduled posts

I'm desperately trying to send a get request to /{page-id}/feed with params:

$result = (new FacebookRequest($session, 'GET', '/'.$fb_page_id.'/feed', array(
    'access_token' => $page_access_token['access_token'],
    'is_published' => 0,
    'since' => time()
)))->execute()->getGraphObject()->asArray();

But it won't return my already future scheduled posts.

Anyone have any ideas?

I've already tried FQL but I get a deprecated error (since v2.0)

I believe promotable_posts is the endpoint to get future scheduled posts too, check out the docs: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed

I did not test it, but scheduled posts are only mentioned for that endpoint.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM