如何在Facebook分享框添加到网页? [英] How to add a Facebook share box to a page?

查看:124
本文介绍了如何在Facebook分享框添加到网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了许多类似的问题在这里,但他们的答案不要被某些原因为我工作。
我需要的份额中,没有类似的。
任何人都可以共享一个工作的解决方案?

I saw many similar questions here but their answers don't work for me by some reasons. I need the share box, not the like one. Can anyone share a working solution?

非常感谢你。



修改

我发现的唯一的工作方法是添加像一个链接:

The only working way I found is to add a link like:

<a href="http://www.facebook.com/sharer.php?u=http://www.mysite.com&t=Title" target="blank">Share on Facebook</a>

但在这种情况下,没有柜台,我需要它。有没有办法,现在办呢?

But in this case there is no counter and I need it. Is there a way to do it now?

推荐答案

好吧,我发现在这里:的http://www.simplebloggertutorials.com/2010/05/how-to-add-facebook-share-button-with.html

Ok, I found it here: http://www.simplebloggertutorials.com/2010/05/how-to-add-facebook-share-button-with.html

只需要添加以下code:

Just need to add following code:

<div>
   <a name="fb_share" type="box_count" expr:share_url="data:post.url" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</div>

很简单的解决方案,并根据链接通过Jarede的Facebook提供将在未来支持共享按钮。

very easy solution and according to the link provided by Jarede Facebook will support Share button in the future.

这篇关于如何在Facebook分享框添加到网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆