Sharing Platforms - Facebook button_count Generating an Error

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>
<script type="text/javascript" src=""></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


I think Rashmi Kant has the best solution in his comment - use the echo inline tags.

<a class="addthis_button_facebook_like" <%="fb:like:layout"%>="standard"></a>

This answer is also given on the AddThis support forums.

just remove fb: from fb:like:layout and g: g:plusone:size, it has no effect on code

may help you

You can also use javascript to change the attributes

var e = document.getElementById('like-button');
e.setAttribute('fb:like:layout', 'box_count');
var f = document.getElementById('tw');
f.setAttribute('tw:count', 'vertical');
var g = document.getElementById('plusone');
g.setAttribute('g:plusone:size', 'tall');

Used the following code,

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

Need Your Help

arp request and reply using c socket programming

c linux sockets wireshark

I am trying to receive and send arp packets using c programming in Linux (Ubuntu)

How to see what a use has chosen from a JList?

java swing jbutton jlist

Recently, I have been working on a Java Jukebox program. So far in this program, the user selects a song from a JList, and hits a "Play" JButton. What I need to do is have the program find out what