2

所以我得到了这个js代码:

FB.ui({ 
    method:'feed',
    from: $('.j-login-user').data('id'),
    to: userId,
}, function(response) {

我的问题是,我可以同时发给多个朋友吗?

如果是这样,怎么做?到目前为止,我尝试:

FB.ui({ 
    method:'feed',
    from: $('.j-login-user').data('id'),
    to: 1234, 12334,
}, function(response) {

FB.ui({ 
    method:'feed',
    from: $('.j-login-user').data('id'),
    to: [1234, 12334],
}, function(response) {

但他们都返回这个 FB 消息:

API Error Code: 100
API Error Description: Invalid parameter
Error Message: 4302516,842604 does not resolve to a valid user ID
4

1 回答 1

1

不要以为你能做的不止一个

该文档以单数形式引用“用户名或 ID” https://developers.facebook.com/docs/reference/dialogs/feed/

于 2013-09-19T15:37:33.167 回答