我无法正确获取代码以使(我的应用程序的)用户发布到朋友的墙上。我希望用户能够选择单身朋友并发布到他们的流中。让用户从列表中选择 1 个朋友或输入朋友姓名,我缺少什么?这是我无法工作的“发布”功能。当方法是“供稿”以发布到用户的墙上时,它可以工作。但是作为“stream.publish”的方法,它的功能仍然类似于“feed”并发布到用户的墙上。
function pubStream(obj,gift_id,item_name)
{
FB.ui({
method: 'stream.publish',
display: 'popup', //have tried display:iframe does same
name: "Special Delivery!",
link: "<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id,
picture: "<?php echo $app_info['upload_url']; ?>"+obj,
caption: "//not used at this time ",
description: "my item escription",
message: "user's message ",
actions: {"name":"my items name","link":"<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id}
},function(response){hideLightbox();});
}