
Facebook introduced more social interactions with their new “Like” or “Recommend” Button. This Facebook button enables the user to interact with a site or page. Additionally share it with his/her friends at their own Facebook profile.
Well, Facebook does made it pretty easy to Implement the “Like” button code on your site. The complexity comes when it is not a single page website. How about a blog Post? This is where you will need this hack to make it work!
Do not use the code provided by Facebook because that will not work on Blog posts. Here is the hacked code designed for WordPress!
Open up your single.php and look for the_content(). Paste the code you see below… either before or after the_content()..
1 2 3 4 5 6 7 | // start of fb like code <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px"></iframe> // end of fb like code <?php the_content(); ?> |
Optional Settings:
If you like to show the faces of your friends, change the part “show_faces=false” to “show_faces=true”
If you like to show the label of the button as “Recommend“, change the part of the code “action=like” to “action=recommend”
I hope this will help you to implement the “Like” button on your WordPress Posts! Have fun and drop me a line at twitter or you can click on the “Like” button on the top of this post 
Resources (Plugins for WordPress):
Thanks to my Readers 
- Facebook Like plugin including support for Open Graph (XFBML)
- Facebook Like Plugin from Smoking Gunn (Features Live Preview, Thanks Stefan to introduce that).
- Alternatively … Kouguu FB Like WordPress Plugin with Configurable Admin Screen
- This is how to Implement in Thesis WordPress theme
Those who doesn’t want to do code hacking, this one is for them 
And.. I’m spent…
Don’t forget to rate the post too!
_





Pingback: Joi Makepeace
Pingback: Alesha Northan
Pingback: Paula Janosko
Pingback: Numbers Gargus
Pingback: Josue Darras
Pingback: Cyrus Grauman
Pingback: Keesha Goggins
Pingback: Dianna Wahba
Pingback: Elmer Picucci
Pingback: Joel Helson
Pingback: Kris Tyssens
Pingback: Dion Cliche
Pingback: Howdy
Pingback: Luther Coray
Pingback: Gilberto Ronchetto
Pingback: Danny Baldwin
Pingback: Annabell Slawter
Pingback: Marvin Gauani
Pingback: Angle Kshywonis
Pingback: Kaye Glazener
Pingback: Bertha Helphinstine
Pingback: Kenton Murnane
Pingback: Carson Driesbach
Pingback: Earlean Lemmon
Pingback: Georgeann Carmouche
Pingback: Marlin Chesbro
Pingback: Gail Tangert
Pingback: Vicente Schrum
Pingback: Darrel Yonek
Pingback: Taylor Lies
Pingback: Wilber Gurule
Pingback: Mary Eckles
Pingback: Janean Schouviller
Pingback: Warner Shorette
Pingback: Fermin Naiman
Pingback: weight loss
Pingback: fgurtghurtert
Pingback: gurtgertfot
Pingback: gurthukert
Pingback: gurtredlop
Pingback: dfgurtgurt
Pingback: asuklertip
Pingback: gutrekilop
Pingback: share box | code@butterflybone
Pingback: Teknologeek.com » Cómo Agregar el Boton “Like” de Facebook a Post Individuales de Wordpress
Pingback: Testing | Freakin' Fun Finances
Pingback: L I L I J A . C O M » Nu kan ni gilla mina inlägg
Pingback: Using the Like Button on Facebook–CRU Blogging
Pingback: DigitalFilipino Talks Blog Contest - Viloria.net
Pingback: How to Add Facebook ‘LIKE’ button to WordPress Posts « Echo Web Services
Pingback: Facebook Like button στα WordPress post και γιατί πρέπει να αποφεύγεις τα plugin | giannoug's blog
Pingback: Add facebook like button to wordpress blog (tested) | Cherry Solution
Pingback: Mohammad Khazab’s Research » Blog Archive » Add Facebook LIKE button to WordPress Posts
Pingback: CDowd: Art, Illustration & Design » Blog Archive » Social Networking for the Artist
Pingback: Revenue Robot | How to add the Facebook Like Button to Site or Blog
Pingback: Anarm.Net
Pingback: Add facebook like button to wordpress blog (tested) | Work With Cherry
Pingback: Adding Facebook Like button to my shop & blog « WilloToons
Pingback: Adding Facebook Like button to Pligg
Pingback: » Adding a Facebook like button to your WordPress blog - Currently Obsessed
Pingback: Facebook Gilla knappen på min blogg | BloggCandy
Pingback: I Like My Facebook Like Button ... Will You Like it Too?
Pingback: Most Tweeted Articles by Digital Photography Experts
Pingback: Facebooks nya gilla-knapp - PRODUKTION 203
Pingback: Sociala medier » S lgger du till en Facebook ”Gilla”-knapp i Wordpress
Pingback: Pitihn se tllkin | skrubu.net blog
Pingback: Facebook Like Button n WordPress | WP Tuts
Pingback: The Facebook Like Button Plugin for WordPress – Heal Your Church WebSite
Pingback: Adding a Facebook ‘Like’ Button To Thesis
Pingback: Facebook reached my blog! - Peter's Blog
Pingback: You are now listed on FAQPAL
Pingback: wp-popular.com » Blog Archive » How to Add Facebook LIKE button to WordPress Posts