last couple of days I was trying to publish feed user actions in friends’ news feed but failed. there is a FBJS function Facebook.showFeedDialog which is used to publish news. the example in the facebook developers’ wiki says to use it like:
var user_message_prompt = “What do you think of this book?”;
var user_message = {value: “write your review here”};
var continuation = function() { //your code here… };
Facebook.showFeedDialog(template_bundle_id, template_data, body_general, 563683308, continuation, user_message_prompt, user_message);
but the problem I faced: I couldn’t use more than one (1) friends ID in the function and it only published to one friends wall.
I talked to a senior app developer [Junal vai] and he provided me a working example. then I found out what I was missing
. Just put nothing in the target_id place[in the given example its: 563683308]. put a blank string[ '' ] and you are done. i mean its like:
Facebook.showFeedDialog(template_bundle_id, template_data, body_general, ”, continuation, user_message_prompt, user_message);
Then it will publish in the user’s[actor] profile & to his/her friends news feed. cheers