我已成功将Feed发布到我的墙上,但没有发布到其他用户墙 我已经定义了'from'和'to'变量
但是在发布所述的Feed时我收到了错误消息 “发生错误。请稍后再试。”
这是发布时的代码
var obj = {
method: 'feed',
link: 'http://apps.facebook.com/' + fb_app_id,
picture: app_url + 'icon/test.png',
from: facebookid1,
to: facebookid2,
name: 'Test App',
caption: 'This is a test!!',
description: 'Test to publish feed to other user wall'
};
function callback(response) {
// Callback after feed posted...
}
FB.ui(obj, callback);
我不知道有什么问题,或者他们是否需要延长许可?
答案 0 :(得分:0)
试试这段代码
FB.ui( {
method: 'feed',
name: name,
link: link,//Link is any link you want to post
picture: picture,
caption: caption,
description: redemption,
message: message,
to: page_id,
from: page_id
},
function (response) {
if (response && response.post_id) {
alert(response.post_id);
} else {
}
}
);
如果用户设置的隐私没有一次可以在他们的墙上发布任何内容,那么在这种情况下您将无法发布