如何在 friend 时间轴上启用共享项目,如图所示。我正在使用 Facebook 共享器 URL,如 demo这是下面的代码。我必须添加哪个参数才能在 friend 的时间轴上分享此网址?
<a target="_blank" title="Share on Facebook" href="https://www.facebook.com/dialog/feed?%20app_id=<?php echo FACEBOOK_APP_ID;?>&%20link=<?php echo urlencode(url_cevir(APP_BASE_URL.'/index.php?view=s&artist='.$a[artistname].'&track='.$a[trackname]));?>&%20picture=<?php echo $a[pic_large];?>&%20name=<?php echo urlencode($a[artistname].' - '.$a[trackname]);?>&caption=cruisear.com&description=Discover new artists, listen new songs.&redirect_uri=<?php echo APP_BASE_URL; ?>"> <img src="img/face.gif" alt="share on facebook" /> </a>
最佳答案
为了在 friend 的墙上分享内容,您需要将 to
参数添加到链接中:
https://www.facebook.com/dialog/feed?
app_id=458358780877780&
link=<?php echo $link ?>/&
picture=<?php echo $pic ?>&
to=<?php echo $friendId ?>
name=<?php echo $name ?>&
caption=<?php echo $caption ?>&
description=<?php echo $description ?>&
redirect_uri=<?php echo $url ?>
关于facebook - 在 friend 的时间轴上分享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14279264/