共享平台 - Facebook Button_count 生成错误
我在我的 ASP.NET
Web 应用程序
中使用以下代码,该代码取自 添加此网站。
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb279bd549b74d7"></script>
<!-- AddThis Button END -->
但这会导致错误
,提示字符串'fb:like:layout'包含太多设备过滤器。只能有一个
我已经从代码中删除了fb:like:layout="button_count"
然后它就可以工作了。但它在按钮之间产生了有线空间。
如果有人知道这有什么问题的话。
提前致谢
I am using below code in my ASP.NET
web application
which took from addthis website.
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb279bd549b74d7"></script>
<!-- AddThis Button END -->
But this cause an ERROR
saying The string 'fb:like:layout' contains too many device filters. There can be only one
I have removed the fb:like:layout="button_count"
from code and then its working. But it generating wired spaces among the buttons.
If anybody knows whats the wrong with this.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为Rashmi Kant在他的评论 - 使用 echo 内联标签。
这个答案也在 AddThis 支持论坛。
I think Rashmi Kant has the best solution in his comment - use the echo inline tags.
This answer is also given on the AddThis support forums.
只需从 fb:like:layout 和 g: g:plusone:size 中删除 fb: ,它对代码没有影响
可能会帮助你
http://oops-solution.blogspot.com/
just remove fb: from fb:like:layout and g: g:plusone:size, it has no effect on code
may help you
http://oops-solution.blogspot.com/
您还可以使用 javascript 来更改属性
You can also use javascript to change the attributes
使用以下代码,
Used the following code,