Publish Stream to another Users wall
I'm working with the fb_stream_publish_dialog function. I am able to publish images from my drupal site to my own wall (or the current authenticated user's wall). I see in the array that you can set the target_id, but I'm not sure how to populate it. I would like the user to be able to choose from a list of friends, or type in a friend's name.
fb_stream_publish_dialog(array(
'method' => 'stream.publish',
'message' => $user_message,
'attachment' => $attachment,
'action_links' => '{}',
'target_id' => '',
'user_message_prompt' => 'null',
'auto_publish' => 'null',
'actor_id' => '',
));
If this is not feasible, I would like to do something like the share button. When you click share (at least of this website) it gives you the option to "send as a message instead". Is there anyway to add this to the stream_publish_dialog? or is there another function I should use.
THis is an excellent module. Thank you for your assistance.
David
- Forums:

Admittedly, fb_stream.module
Admittedly, fb_stream.module leaves something to be desired. You suggest a great addition. There are ways to get a list of user's friends, and you'd obviously have them choose before they post.
This site offers a very simple "Share on Facebook" checkbox. A more fully-featured one would allow a user to choose who to post to (a friend or a page) and who to post as (yourself or a page you manage).
It's just a matter of developing it. Patches always welcome!