Facebook的错误100:不能在发布后指定计划发布时间 [英] Facebook Error 100: You cannot specify a scheduled publish time on a published post

查看:493
本文介绍了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:不能在发布后指定计划发布时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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