Facebook分享文本


Facebook share text

我的网站上有这些链接

<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" class="fb_share_button" onclick="return fbs_click('http://site.com/profile/4')" target="_blank" style="text-decoration:none;"></a>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" class="fb_share_button" onclick="return fbs_click('http://site.com/profile/5')" target="_blank" style="text-decoration:none;"></a>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" class="fb_share_button" onclick="return fbs_click('http://site.com/profile/8')" target="_blank" style="text-decoration:none;"></a>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" class="fb_share_button" onclick="return fbs_click('http://site.com/profile/9')" target="_blank" style="text-decoration:none;"></a>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" class="fb_share_button" onclick="return fbs_click('http://site.com/profile/10')" target="_blank" style="text-decoration:none;"></a>

与此javascript

<script>
function fbs_click(location_place) {
        u=location_place;
        t=document.title;
        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
        return false;
    }
</script>

,我想知道是否有一种方法来添加文本或某种类型的每一个唯一,使每个链接作为一个不同的身体..这里是我的代码工作,但我在哪里以及如何添加某种类型的描述

你应该给你想要分享的页面添加Open Graph标签——这就是分享者获取它们的方式,而且好的是,如果有人决定在他们的feed中共享一个链接,同样的信息也会被获取。Facebook的URL Linter是一个很好的工具,它可以找出Facebook在寻找Open Graph信息时看到的内容。

编辑:阅读OP错误…据我所知/已经发现,你不能调整什么得到在使用facebook.com/sharer.php共享对话框中显示的正文。你可能需要考虑使用facebook api进行社交互动的其他方法。

如果我记性好,可以在facebook.com/sharer.php?Url如下:

facebook.com/sharer.php?u=yourlinke&t=The您希望它位于文本区域的文本