Darkagelink
Darkagelink

Reputation: 645

Facebook api Javascript post to friends wall

So i got this js code:

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

My question is, can i post to multiple friends at the same time?

If so, how? So far i try:

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

And

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

But they both return this FB msg:

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

Upvotes: 2

Views: 1515

Answers (1)

JeffUK
JeffUK

Reputation: 4241

Don't think you can do more than one

the documentation refers to 'username or id' in singular https://developers.facebook.com/docs/reference/dialogs/feed/

Upvotes: 1

Related Questions