简体   繁体   English

如何使用FB.ui创建未发布的帖子

[英]How can I use FB.ui to create unpublished post

I have been trying to use fb.ui to create an unpublished post. 我一直在尝试使用fb.ui创建未发布的帖子。 Cant find any documentation for it. 无法找到任何文档。 Is this possible with v2.8 ? v2.8是否可能?

I don´t think you can do it with FB.ui dialogs (and scheduling is only possible for Pages anyway), but it is possible with FB.api : 我不认为您可以使用FB.ui对话框来做到这FB.ui (并且无论如何只能对Pages进行调度),但是可以通过FB.api

const params = {
    access_token: <pageToken>,
    published: false,
    message: 'some text',
    scheduled_publish_time: <timestamp>
};

FB.api('/<pageid>/feed', params, (response) => {
    if (response && response.error) {

    } else {

    }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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