gpt4 book ai didi

facebook - 带有计数的紧凑型 Facebook 共享按钮?

转载 作者:行者123 更新时间:2023-11-30 05:27:17 24 4
gpt4 key购买 nike

我正在尝试在我的网站上添加一个简单紧凑的 fshare 按钮。我找到的唯一代码是这个:

<div style="float:left;padding:4px;">
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='button_count'/>
<script type="text/javascript" src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"/>
</div>

应该呈现为

fshare

但这并不正确。它似乎正在尝试创建多个按钮并“崩溃”所有页面。它破坏了 HTML,改变了整个 div 的背景等等...

fsharecrash

这是为什么呢?这是正确的代码吗?

最佳答案

Facebook 不再推荐使用分享按钮,相反你应该使用点赞按钮。这是他们在 website 上所说的话:

We don't recommend the Share button for new developers. If you aren't already using the Share button, we recommend you migrate to the Like button and Open Graph protocol instead of Share for sharing pages from your website. The Like button is simpler to user and is the recommended solution moving forward.

有了点赞按钮,您可以使用 javascript 或 iframe 添加它,这样您就可以看到哪一个最适合您。阅读更多关于点赞按钮的信息 here .

关于facebook - 带有计数的紧凑型 Facebook 共享按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4164466/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com