If you want to add a "Send to Facebook" button for your Wordpress blog follow these simple steps:
1. Open the single.php file in your theme.
2. Paste the following code in the loop:
HTML Code:
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank">Share on Facebook</a>
3. And that's it. Now your readers will be able to share your blog post on Facebook with all their friends.
Can you explain the code?
Of course. This hack is easy to understand: what we do here is retrieve the post's permalink and title and send them as parameters to
http://www.facebook.com/sharer.php.
If you have any more questions, please ask.