Facebook的错误100:不能在发布后指定计划发布时间

编程入门 行业动态 更新时间:2024-10-26 00:27:17
本文介绍了Facebook的错误100:不能在发布后指定计划发布时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我不得不这样做。当然每一个问题,我抬头对这个问题的问题,但没有他们的答案的帮我解决这个问题。

I just had to do this. Absolutely every question I looked up questions regarding this issue but none of their answers helped me solve it.

我想我张贴的Facebook页面上。

I am trying to post on my Facebook page.

下面是问题:

错误:(#100)无法在发布后指定计划发布时间

code:

FB.api( "/100177680105780/feed", "POST", { "message": "This is a test message", "scheduled_publish_time": Math.round(new Date().getTime() / 1000) + 120 }, function (response) { console.log(response); if (response && !response.error) { /* handle the result */ } });

我不知道这是为什么给我这个错误。 {}周围的帖子的内容:如果我添加的对象,它甚至不工作。我试图改变UNIX时间戳,我试图改变的消息时,我尝试设置的发表:虚假并没有运气

任何指导,将是惊人的。

Any guidance would be amazing.

推荐答案

发表:虚假应以发布计划的岗位设置。如果你仔细看错误将此参数设置后,它说:

"published": false should be set in order to publish the scheduled posts. If you carefully see the error after you set this parameter, it says:

(#200)未发表的帖子必须张贴到一个页面的页面本身。

(#200) Unpublished posts must be posted to a page as the page itself.

该计划的职位只能使用页的访问令牌公布 - 因为那些谁拥有管理页面可以安排职位的权限不够合理。

The scheduled posts can be published only using the page access token - logical enough since those who have the permission to manage the pages can schedule the post.

另外,与你的code(这里使用的是普通用户的访问令牌),后不发布为自己代表的页面。而这些职位并不是主墙壁,这不是你在找什么右侧边栏上看到? :)

Also, with your code (where you are using a normal user access token), the post is published as yourself not on behalf of the page. And these posts are visible on the side bar not on the main wall- that's not what you are looking for right? :)

所以,使用页的访问令牌。要获得页面访问令牌,首先获得新的用户令牌 manage_pages 许可并进行call-

So, use the page access token. To get the page access token, get the new user token first with manage_pages permission and make the call-

\GET /{page-id}?fields=access_token

使用此标记,并拨打电话来安排岗位 -

Use this token and make the call to schedule the post-

FB.api( "/{page-id}/feed", "POST", { "message": "This is a test message", "scheduled_publish_time": Math.round(new Date().getTime() / 1000) + 120, "published": false, "access_token": "{page-access-token}" }, function (response) { console.log(response); if (response && !response.error) { /* handle the result */ } });

我不知道究竟你的应用程序做什么,但如果得到一个永远不会过期的页面访问令牌可以帮助你,你可以看到我的答案的这里是相同的。

希望帮助!

编辑:

由于@Tobi提到,还要确保UNIX时间戳是10分钟,从公布的时间为6个月。由于使用的是2分钟,也可能创造的问题。

As @Tobi has mentioned, also make sure UNIX timestamp is between 10 minutes and 6 months from the time of publish. Since you are using 2 minutes, that may also create problem.

更多推荐

Facebook的错误100:不能在发布后指定计划发布时间

本文发布于:2023-11-27 06:51:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637034.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发布时间   能在   错误   计划   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!