Facebook Like

jeto Jul 17, 2012 11:14AM EDT

Hello.

I have this code on my website on every page:

<div id="addthis">
<a class="addthis_button_facebook_like" fb:like:layout="button_count" fb:like:width="148"></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="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4da9ca40114eaf0f"></script>
</div>

The problem is that Facebook button doesn't work properly. It always has the same link and same amount of likes instead of other buttons. I tried to past following code, but it doesn't work:

<a class="addthis_button_facebook_like" fb:like:layout="button_count" fb:like:width="148" fb:like:href="http://test.com/pagename.html"></a>

What should I do?

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jul 24, 2012 12:56PM EDT
Facebook doesn't work like the other AddThis buttons. Instead of accepting parameters that we pass it, Facebook requests the URL you're sharing and gets the data it displays from the meta and link tags in the header. To control how your page is shared on Facebook you should use OpenGraph tags which are described in Facebook's documentation here: http://developers.facebook.com/docs/opengraph/

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers