English 中文(简体)
AddThis button + Facebook Like button
原标题:

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!

最佳回答

Try this:

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

See also: http://www.addthis.com/help/widget-sharing#tagging

问题回答

You might get an error with the add this way to display the Facebook Like Button and IIS7.0.

I had the problem yesterday and have posted a solution here.

Hope this helps, Covo





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签