且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Facebook - 通过Graph API在页面上发布定期发布的帖子

更新时间:2023-12-02 16:31:46

是在创建帖子时使用 scheduled_publish_time 参数 - 在您链接的文档中提到了此参数,该部分列出了创建帖子时接受的参数,例如, '状态更新'部分:
https://developers.facebook .com / docs / reference / api / page /#statuses

Yes, use the scheduled_publish_time parameter when creating the post - this parameter is mentioned in the documentation you linked in multiple sections, where the parameters accepted when creating posts are listed, for example, in the 'Status Update' section: https://developers.facebook.com/docs/reference/api/page/#statuses

它的值应该是根据文档的UNIX时间戳,尽管在Facebook的许多地方API也可以使用PHP的 strtotime解析的任何日期$ c> function ,所以请尝试一下。

Its value should be UNIX timestamp according to the documentation, though in many places in the Facebook API you can also use any date which is parseable by PHP's strtotime function so try that too.

页面发布时间应该是这样,在发布帖子之后10分钟和6个月之间。

如果在指定发布为false,尝试在创建时将其设置为true

If you can't get this to work when specifying published to false, try setting it to 'true' at creation time