我尝试从一个网站发送信息,使用facebook js sdk在多个用户的墙上发布消息。
我有一个问题,似乎我们不能把多个'提供js代码中的收件人。 请问有什么解决方案吗?
我的代码:
$(document).ready(function () {
$('form').bind('submit', function () {
FB.getLoginStatus(function (response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
}
});
var chkArray = [];
$(".fb_friend :checked").each(function () {
FB.ui({
method: 'feed',
name: 'Event On GiFolio !',
link: 'https://developers.facebook.com/docs/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: '',
description: 'Click on the link to join my event on GiFolio !',
to: $(this).val()
}, function(response){
console.log(response);
});
});
return false;
});
});
Img: