如何向页面添加 Facebook 分享框?
我在这里看到了很多类似的问题,但由于某些原因,他们的答案对我不起作用。 我需要共享盒,而不是类似的。 有人可以分享一个可行的解决方案吗?
非常感谢
编辑
我发现的唯一工作方法是添加一个链接,例如:
<a href="http://www.facebook.com/sharer.php?u=http://www.mysite.com&t=Title" target="blank">Share on Facebook</a>
但在这种情况下没有计数器,我需要它。现在有办法做到吗?
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?
Thank you very much
EDIT
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,我在这里找到了它: 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
Just need to add following code:
very easy solution and according to the link provided by Jarede Facebook will support Share button in the future.
这里有更好的解决方案:Facebook Feed Dialog
Much more nicer solution here: Facebook Feed Dialog
分享按钮已被弃用,取而代之的是“赞”按钮。也许最好的办法是跟上世界其他地方的步伐并使用 Like,而不是尝试实现过时的 Share。
我发现了这个:
https://www.hs.facebook.com/note.php ?note_id=10150211527410844
The share button has been deprecated in preference for the Like button. Probably best to keep up with the rest of the world and use Like instead of trying to implement the outdated Share.
I found this:
https://www.hs.facebook.com/note.php?note_id=10150211527410844