1

I am trying to use AddThis button on a web page of mine, which you can share, like (facebook), and tweet (twitter) -

alt text

the AddThis code is pretty straight forward below,

<!-- AddThis Button BEGIN -->
<div id="share" 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_counter addthis_pill_style"></a><!---->
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4cdb5be51dc49c98"></script>
<!-- AddThis Button END -->

but I don't understand - in the code above, where can I put the image or video url which I have uploaded and posted on my fb page? for instance the url below is the image from my facebook page that I want to track how many people like this picture through my website,

http://www.facebook.com/photo.php?fbid=10150115644909972&set=a.10150115644754972.329183.55239684971

I have read through the documentation on AddThis but it doesnt explain this at all! http://www.addthis.com/help/client-api#configuration-sharing

It points me to this, http://developers.facebook.com/docs/reference/plugins/like#

again, this is a Facebook plugin, no used within AddThis. If I am using the Like button from the Facebook API, then I cannot use the AddThis plugin above, can I?

furthermore, The Like button from Faebook API seems to work on the Facebook page, but not an individual picture or video I uploaded/ posted on my Facebook Page, for instance, I tried this on my localhost, the picture on my Facebook Page won't collect the number of likes even though I have clicked the Like button on my screen.

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/photo.php?fbid=10150115644909972&amp;set=a.10150115644754972.329183.55239684971" layout="button_count" font="arial"></fb:like>

so my main doubt on the Like button itself - does it work on facebook only or does it apply to the individual picture/ video on my facebook page? I tried to find this answer from the facebook Like documentation but it doesn't explain anything about this.

it would be grateful if you have any idea. thanks!

4

2 回答 2

1

以这种方式添加以显示 Facebook Like 按钮和 IIS7.0 时,您可能会遇到错误。

我昨天遇到了问题,并在这里发布了解决方案。

希望这会有所帮助,科沃

于 2011-03-25T22:54:46.383 回答
1

尝试这个:

...
<div class="addthis_toolbox addthis_default_style" 
     expr:addthis:title='Photo' 
     expr:addthis:url='http://www.facebook.com/photo.php?fbid=10150115644909972&set=a.10150115644754972.329183.55239684971'> 
  <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> 
  <a class="addthis_button_tweet"></a>
  <a class="addthis_counter addthis_pill_style"></a><!---->
</div>
...

另请参阅:http: //www.addthis.com/help/widget-sharing#tagging

于 2011-03-18T00:39:16.463 回答