Add the first block of PHP code to your functions.php file in your wordpress. Then add the second block of PHP code into the single.php file of your theme will display the number of Facebook likes your posts have.

About wpsnipp

WPSNIPP Was founded in 2010 by Kevin Chard and is a free resource dedicated to WordPress covering a wide range of topics. With over 640+ WordPress snippets, we also have tutorials, plugins, gallery and deals to enhance all aspects of your WordPress theme or blog.