我试图使用Feed Dialog在facebook朋友的墙上发帖。如何使用Feed Dialog与多个朋友选择器?或者我可以在Feed对话框的参数'to'中包含user_ids(friend's id)数组吗?下面给出的代码,其中'ids'是user_ids(朋友ID)的数组。这对我不起作用。
var obj = {
method: 'feed',
to: ids,
link: 'http://www.xxxxxxx.com/xxxxxx',
picture: 'http://xxx.com/xx.jpg',
name: 'Feed Dialog',
caption: 'Friends',
description: 'Feed dialog to post on friends wall.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);