Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Facebook共享文本_Php_Javascript_Facebook_Share - Fatal编程技术网

Php Facebook共享文本

Php Facebook共享文本,php,javascript,facebook,share,Php,Javascript,Facebook,Share,我的网站上有这些链接 <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" h

我的网站上有这些链接

<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>

我想知道是否有一种方法可以将文本或某种排序添加到每个链接中,使每个链接成为不同的主体。这是我的代码,但我在哪里以及如何添加某种排序的描述编辑:阅读操作错误。。。
据我所知,你不能使用facebook.com/sharr.php调整共享对话框中显示内容的正文。您可能需要研究使用facebook api进行社交互动的其他方法。

如果我的记忆力好,您可以在facebook.com/sharer.php中添加一个参数?像这样的网址:


facebook.com/share.php?u=yourlinke&t=你希望它出现在文本区域的文本

你应该在你希望共享的页面上添加标签-这就是共享者获取它们的方式,好的事情是,如果有人决定只在他们的提要中共享一个链接,同样的信息也会被获取。这是一个很好的工具,可以用来计算Facebook在寻找开放图形信息时看到了什么。

我知道如何使用所有这些信息……但是在网上的什么地方?我把它放好了!对不起,我看错了你的问题。据我所知,您无法使用facebook.com/sharer.php调整共享的正文。至少我还没有找到一个方法来做这件事…t不适合文本。这是为了标题。但是我如何在一个页面上使用多个,正如你从我的示例中看到的,我有几个例子