I recently added Facebook like buttons to each of my posts and was surprised at how easy it was. There is no need to install plugins because it’s very simple.
- Go to Facebook and get the code to make the like button: https://developers.facebook.com/docs/reference/plugins/like/

- Copy the code from part one and go to your WP Dashboard under Appearance -> Editor
- Select your theme on the top right dropdown.
- Click header.php from the list of files.
- Paste the first code after the <body> tag.
- Update that file.
- Open index.php and find the loop. It should look like this:

- Go back to Facebook and copy the second code.
- Paste it inside of the loop at the end of the “entry” div.

- Replace the data-href URL with <?php the_permalink() ?> and that will generate the URL for that post.
- Update that file.
- Open single.php and find the loop and do steps 9-11 again.
Pretty simple. I also recommend checking out the WP Facebook Open Graph protocol plugin http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/







