Open Graph protocol adds Facebook "Like" to your site

I admit to still being less than enthusiastic about Facebook. Yes, it's nice to keep up with family and friends, and yes, I use the Facebook Scrabble app every day, but..

Well, you know what follows the "but". I'm a crusty and grumpy old dinosaur and all this "social media" stuff ticks me off (see 13.2 Reasons I don't like Social Media).

But (yes, another "but"), although Digg and Stumble Upon make me spit in disgust, I have to admit to liking Twitter a lot and (gulp) I'm warming a bit toward Facebook. Ayup, it's true: I like Twitter and harbor only the faintest bit of remaining dislike for Facebook!

With that glowing feeling of fading resentment warming the cockles of my heart, I decided to add Twitter Tweet and Facebook "Like" buttons to pages here. Well, I decided to TRY that. I'll add them to a few of the newest pages and we'll see how I feel about it in a few weeks.


Adding the Twitter code is easy. You pop over to Twitter Tweet Buttons, configure how you want the button to look and pick up your code. Simple. I like simple.

Facebook Open Graph

Facebook requires a little more work, but it isn't bad. Basically, you have to add a minimum set of meta tags to your page and then a little Javascript will create the "Like" button. The Facebook Developers Open Graph page shows you the minimum and optional meta tags needed and also provides the necessary Javascript code.

Facebook has other bits of code related to this. You can add an "Activity Stream", a "Recommended" section and even "Chat". You could also use Facebook Comments, but I'm a long, long way from wanting to do any of those things.

You could manually add that to every page, but of course it's easier to do it programmatically. If you are using Wordpress, you'll find everything you need at their Plug in Directory.

So, there it is. You can see the new buttons below (Nope - I moved to Addthis later. If you click on "Tweet", it does what you think, and clicking "Like" generates a "Whoseamagiggy likes.." on your Facebook. Basically (assuming you have a Twitter and/or Facebook account), this stuff is just an easy way to tell other folks they might want to read something you read.

Got something to add? Send me email.

(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Using Open Graph Protocol to add Facebook 'Like' to your pages


Increase ad revenue 50-250% with Ezoic

More Articles by

Find me on Google+

© Anthony Lawrence

Sat Mar 5 13:27:58 2011: 9359   Mark


There are a lot of ways to skin this cat. I've been using addthis - (link) - you can see an example of what it looks like on any post on my site

Sat Mar 5 13:32:33 2011: 9360   TonyLawrence


Ayup. I just hate all that Digg and Stumble stuff. The last thing I want here is another influx of moronic Diggers.

Sat Mar 5 18:41:24 2011: 9361   BigDumbDinosaur


The last thing I want here is another influx of moronic Diggers.

What makes you think the twits at Twitter or the fakes at Facebook are any better?

Sat Mar 5 18:48:59 2011: 9362   TonyLawrence


Because I've never had a bad experience from those sources? Believe me, if I do, the stuff comes off instantly.

I think the mentality of Digg et al. contributes to it. The "Diggers" need to visit and vote on sites to maintain their standing. Nothing like that exists in Twitter or Facebook - you like content and share it because you like it, not to help build your own reputation.

That's an important difference, I think.

Kerio Samepage

Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Additional Info