Business & Finance Social Media

Add a Facebook Like to Your Blog Or Website

A fan no more.
The recent f8 conference unveiled new features for Facebook, foremost among them is the change from becoming a "fan" of a page to "liking" a page.
This change was allegedly made to encourage more interaction (I can like something and not be a fan of it, right?) and to increase Facebook's reach across the internet.
Now you can "Like" blog posts, webpages and other sites.
When you "Like" the page, it is shared to Facebook for all the world to see.
Picture delicious bookmarks shared with a large audience.
This change can help increase traffic to blog posts and website by encouraging readers to quickly share your link with their hundreds or thousands of friends.
To test out this new feature, we've added it to our online magazine, The Post SD.
com.
Take a look and see if you "like" it.
It's a pretty easy add for your blog or website as well.
You can add both a small button inline with your title or a larger button that shows names of people who "liked" it.
To get started, you'll have to find and be able to edit your single.
php.
This page renders individual blog post pages.
Open it up and look for the_content().
You can paste the following code before the_content() for it to be at the top of the post, or after it if you want it at the bottom.
Also be careful that you don't have the_content() twice or your content will be double posted.
// start of fb like code // end of fb like code <?php the_content(); ?>
You can also get a small like button that doesn't list who has liked it.
You can add this after the <code> </code>
<code><!--Start Facebook--> <!--End Facebook--></code>
Time to start sharing and liking.
Get to it and let us know if you think we should allow "liking" to our blog!


Leave a reply