[fr] Comment ajouter à votre sidebar WordPress un bouton "J'aime" simple pour vos pages Facebook.
Sorting out my mess of Facebook pages and groups (part 2 coming soon!), I’ve spent way too much time struggling with the Facebook Like Box creator and a couple of WordPress plugins (Facebook Social Plugins and Facebook Like Box Widget). I just didn’t manage to get what I want, which is a simple, minimal list of my Facebook pages and a Like button next to them.
Here’s what I wanted (it’s in the CTTS footer now, so you can also scroll down and see it live… and like my pages!)
I didn’t want a Like Box full of stuff. Just the page name, avatar, and the like button.
Here’s how I finally did it (it’s dirty, but it works — just stick the code in a text widget if you have a WordPress blog):
<iframe src="http://www.facebook.com/plugins/likebox.php?id=7812744463" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:220px;height:60px;" allowTransparency="true"></iframe>
Just replace the number after
id= by your page’s ID (you can find it easily by going to your page, it’s the number following your page name in the URL.
If your page name is long, you might want to increase the height of your
iframe to 80px or 100px (trial and error, you’ll find the right height).
There you go!
Oh, and I added like buttons to my posts, too, with the Facebook Like Button plugin. Dunno if it’s the best one out there or not, but it seems to work and I didn’t have to struggle too much setting it up.