如何将此链接附件发布到Facebook上的群组Feed?我想我做错了。
function post_to_group() {
FB.api("/group_id/feed", 'post', {
message: 'My Sample Post',
attachment: {
name: 'Article Name Slugs',
href: 'http://mylink.com/article-name-slugs/'
}
},
function(response) {
if (!response || response.error) {
console.log('Error occured: ', response.error);
} else {
alert('Post ID: ' + response.id);
}
});
}
这是我对我所做的事情的引用: Facebook - Posting to a Group page
但是这显示了我的工作和我引用的那个 -
的错误{message:“(#200)用户尚未授权申请 执行此操作“,键入:”OAuthException“,代码:200}
答案 0 :(得分:0)
FB.ui(
{
method: 'stream.publish',
from: myId,
to: groupID,
attachment: {
name: 'Post to a group Test',
href: '...'
}
});