Title: Facebook &#8220;like&#8221; buttons
Last modified: August 19, 2016

---

# Facebook “like” buttons

 *  Resolved [nickaster](https://wordpress.org/support/users/nickaster/)
 * (@nickaster)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/)
 * Howdy. I was trying to slap some facebook “like” buttons onto my single.php pages
   using these instructions:
 * [http://www.webmonkey.com/2010/04/adding-facebook-like-buttons-to-your-site-is-damn-easy/](http://www.webmonkey.com/2010/04/adding-facebook-like-buttons-to-your-site-is-damn-easy/)
 * I slapped this code into the template:
 * ‘<iframe src=”<?php the_permalink(); ?>” scrolling=”no” frameborder=”0″ allowTransparency
   =”true” style=”border:none; overflow:hidden; width:450px; height:px”>’
 * I reckon there’s something wrong with putting that PHP in there because all hell
   breaks lose with the template when i look at the pages. What’s the right way 
   to get “the permalink” to show there? Is there a better way to put these “like”
   buttons on my pages? I would like to avoid more plugins or javascript – I’ve 
   just got too darn much junk on the site.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [sd1979](https://wordpress.org/support/users/sd1979/)
 * (@sd1979)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483130)
 * I followed the directions on this blog and didn’t have any issues.
    [http://savvyblogging.net/how-to-add-a-facebook-like-button-to-your-site/](http://savvyblogging.net/how-to-add-a-facebook-like-button-to-your-site/)
 *  [sollers](https://wordpress.org/support/users/sollers/)
 * (@sollers)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483146)
 * Or use this: [http://wordpress.org/extend/plugins/facebook-like-box](http://wordpress.org/extend/plugins/facebook-like-box)
 *     ```
       Use:
       <?php facebook_like_box('PROFILE_ID', 'STREAM', 'CONNECTIONS', 'WIDTH', 'HEIGHT', 'HEADER', 'LOCALE'); ?>
   
       Example use:
       <?php facebook_like_box('1641919198198198', 0, 20, 500, 300, 0, 'en_EN'); ?>
       ```
   
 *  [dralezero](https://wordpress.org/support/users/dralezero/)
 * (@dralezero)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483150)
 * iframes should be closed with `</iframe>`
 *  Thread Starter [nickaster](https://wordpress.org/support/users/nickaster/)
 * (@nickaster)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483224)
 * Oh god, I’m retarded. /iframe. Thanks guys.
 *  [dralezero](https://wordpress.org/support/users/dralezero/)
 * (@dralezero)
 * [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483261)
 * I forgive you. 🙂 The instructions on that page didn’t show to do that.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Facebook “like” buttons’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [dralezero](https://wordpress.org/support/users/dralezero/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/facebook-like-buttons/#post-1483261)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
