Putting a Facebook Like Button in a Movabletype Blog


Facebook, Inc.

Image via Wikipedia

The top of this post has a Facebook "like button." I'm not sure I'm going to leave it there, but I though I'd share how I did it. These instructions are for Movabletype:

  1. Edit the "Individual Entry Archive" template under "Archive Templates"
  2. Once you decide where you want the button in the template, insert the following code: Note that <$MTEntryPermalink$> is what gets the entry URL and places it in the call to Facebook
  3. Save the template
  4. Republish any entries you want to have the like button

You might want to change how the Facebook like button looks. You can do that on Facebooks like button generator page. Just remember to change the URL to use <$MTEntryPermalink$>. I had to add a "height: 25px" to the iframe style to make it the right height. Still not sure this is right, but without it, I got a big white space underneath the iframe.

Pretty simple and now your blog has been assimilated by Facebook.


Please leave comments using the Hypothes.is sidebar.

Last modified: Thu Oct 10 12:47:19 2019.