Facebook - Post to multiple friends walls -
i using javascript sdk post onto users friends wall:
var publish = { method: 'stream.publish', message: 'some kind of test', uid: uid, target_id: friendid, attachment: { name: 'test', caption: 'facebook api test', description: ('sure hope worked!'), href: 'http://www.test.com/', media: [ { type: 'image', href: 'http://test.com/', src: 'http://test.com/image.jpg' } ] }, action_links: [ { text: 'enigma marketing', href: 'http://www.test.com/' } ], user_prompt_message: 'share thoughts test' }; fb.ui(publish); return false; it working ok, wondering if there way post multiple friends walls? noticed pop shows target friend in list few, seems may possible publish post more 1 user. can't find in documentation, appreciated.
no, cannot post multiple friends stream in 1 call.
the best way server side user not multiple prompts. notice discouraged though since can perceived spam.
with code, can loop on send event part:
var publish = { method: 'stream.publish', message: 'some kind of test', uid: uid, attachment: { name: 'test', caption: 'facebook api test', description: ('sure hope worked!'), href: 'http://www.test.com/', media: [ { type: 'image', href: 'http://test.com/', src: 'http://test.com/image.jpg' } ] }, action_links: [ { text: 'enigma marketing', href: 'http://www.test.com/' } ], user_prompt_message: 'share thoughts test' }; publish.target_id = friendid; fb.ui(publish); publish.target_id = friendid; fb.ui(publish); return false;
Comments
Post a Comment