Php Facebook只共享某些div

Php Facebook只共享某些div,php,facebook,Php,Facebook,因此,我有以下facebook共享代码 <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,heigh

因此,我有以下facebook共享代码

<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_facebook" onclick="javascript:window.open(this.href,                 '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;">
<i class="icon-facebook"></i>
</a>

现在,当单击共享按钮时,页面的整个快照显示在共享窗口中。 在这个共享按钮所在的php文件中,我有一个特定的
div
,我想在Facebook共享窗口中显示它,而不是页面的整个快照

有人知道我怎么做吗


谢谢

不确定这样做是否可行,您可以试试
#您的_div_id


另一种选择是使用

谢谢你的提问,我有相同的QU。