Social media marketing has emerged as the king of all the marketing efforts invested by the web developers to make the blog posts (and websites) popular. Facebook being one of the major players in social media marketing, has offered ways to promote the social sharing on your website. After introducing the Facebook Like button, it has now pipe-lined the Send button.
The Facebook Send button allows the users to send the content as private message to their friends, even those who do not have account on Facebook. The FB Send button provides options to send the URL of your website as a message, post it on the group wall or mail it to any e-mail address. Along with the existing Facebook Like button, you can also add the Facebook Send button to encourage social sharing and drive traffic to your weblog.
To add the Facebook Send button, add the following code inside the loop in your single.php.
<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:send href="<?php echo get_permalink(); ?>" font=""></fb:send>
If you already have a Facebook Like button, simply add send=true attribute to your XFBML version of the Like button (as in the following code). The following code will enable you to place Like button and Send button next to each other.
<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:like href="<?php echo get_permalink(); ?>" show_faces="true" width="450" send="true"></fb:like>
You can also customize the Facebook Send button by changing the values of href, colorscheme and font attributes. You can customize the Send button and get the code for the customization at Facebook Developers.
WordPress Support, Code Snippets