var message = 'test';
var picture = 'http://l.yimg.com/f/i/tw/ks/show/120604_mntl01.jpg';
var link = 'https://www.youtube.com/watch?v=BIl8Px1ds3c';
var name = 'great';
var description = 'des';
FB.api('/1437247769881131/feed', 'post', {message: message, picture: picture, name: name, description: description },function (response){
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});
我尝试在我的粉丝专页墙上发布一条测试消息,但它变成了访客帖子(左侧)
如果我将我的管理员更改为粉丝页面管理员,我怎么能发帖到墙上,它会弹出一个对话框
[您正在使用 Facebook 作为主页]
[要继续,您需要从使用 Facebook 作为谈政宏切换到使用 Facebook 作为谈政宏。]
所以我改回 person admin ,但我只能发访客帖
如何以主页管理员身份发帖?
最佳答案
您只需要使用主页 token 发布“作为主页”。现在您正在使用用户 token ,因此它将以“用户身份”发布。有关访问 token 的信息:
关于facebook-graph-api - Facebook 以页面管理员身份发布页面提要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31178345/