Facebook - 通过Graph API在页面上发布定期发布的帖子 [英] Facebook - posting scheduled posts on pages via Graph API

查看:121
本文介绍了Facebook - 通过Graph API在页面上发布定期发布的帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了 facebook文档, t安静清我的问题是,就像一个页面管理员可以在其页面上手动添加计划的帖子,我的应用程序可以使用正确的访问令牌一样吗?我已经尝试使用POST请求在未来的日期设置created_time,但是只是立即发布。

I've already read the facebook documentation which isn't quiet clear. My question is, just like a page admin can manually add scheduled posts on their page, can my app, with the right access token, do the same? I've already tried using POST requests to set a 'created_time' on a future date but it just posts immediately.

推荐答案

是在创建帖子时使用 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解析的任何日期 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个月之间。

如果在指定<$ c时无法使此工作正常$ c>发布为false,尝试在创建时将其设置为true

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

这篇关于Facebook - 通过Graph API在页面上发布定期发布的帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆