Facebook’s Like Button for the Whole Internet – Here’s How it Works

Techcrunch today talked about a new “Like Button for the Whole Internet” which Facebook looks to be launching some time soon, and has been tested amongst several developers as they’ve been told.  What they didn’t mention is that you can access the code for this right now in the code to the latest open source Javascript SDK.  While it does not currently work in its current form, it is open for the entire public to see, and has been there for the last few months (along with a few other hints I’ll let you find).

Assuming the source of the new SDK (currently in alpha) remains the same, the XFBML button can be placed on any website on the internet, and it increments the number of likes when a user clicks on it.  By default it increments the likes for the current page, but there appears to also be the ability to specify a “permalink” attribute, along with a URL to another page.  It’s unclear if that will be changeable in the XFBML tag or not.  Also, a required “node_type” attribute that defaults to “page” can be set.  Lastly, an optional “page_url” can be set.  The XFBML tag loads content from /widgets/like.php (attributes of the XFBML tag get passed as attributes in the URL).  That URL appears to be disabled at the moment.

So it looks like the XFBML tag will look something like the following, and it will be part of Facebook’s widgets architecture:

Also of interest, Facebook has an entire tag library devoted to the new tag, like.js.  You can probably gain a little more info from that.  I can’t wait for them to turn on like.php so we can play with this.

My book, FBML Essentials, may just get a lot more interesting as Facebook prepares for their “OpenGraph API”, enabling any website to become its own Facebook Fan Page across the internet.  This is one of many tags I’ve seen that are very interesting – see if you can look through the code and find anything else that looks interesting like this.  I love being a developer. 🙂

This entry was posted in Facebook, fb:like, fbml, http://schemas.google.com/blogger/2008/kind#post, like, like button, Technology, xfbml. Bookmark the permalink.

17 Responses to Facebook’s Like Button for the Whole Internet – Here’s How it Works

  1. Posi Hosi says:

    Thanks for explanations…
    Workers of the world unite, you have nothing to lose but your chains.
    – Karl Marx –

  2. Ahad Bokhari says:

    Thanks, checked this out over on Git. Being new to the Facebook platform i went ahead and got a free developer account over at Jojent. For anyone looking to play around with the API you can try signing up for that.

    Looks like they are accepting lots of folks into the free developer program lately. I was this close to buying a little slice over on slicehost, or checking out Amazon. Might be worth a look…

  3. partywedo says:

    Wow…. I LIKE this!

  4. […] code and find anything else that looks interesting like this.  I love being a developer. Read the original post at Stay 'N Alive birdbathBUZZ works with businesses to develop solid social media marketing and […]

  5. Eric J says:

    Thanks for sharing this info on the new Like Button. I'll definitely find a way to put it to good use on various sites of my own. This is my first time here, but I love the layout. Bookmarked! 🙂

  6. […] there is the “like” button for any page on the internet. So, not only is Facebook going to share your profile with some sites, they are now […]

  7. […] talked about Facebook releasing a like button. Jesse Stay in his blog Stay N` Alive explained that Facebook will keep count on the number of ‘likes’ on the […]

  8. This like button will definitely open up a lot of opportunity for user to gather information on their use demographic. Analyzing who likes our web sites gives us some insight what user group are attracted to our website. I wonder whether FB like 'button' will enable FB to gather information on websites like what Google Analytic does. Will FB Like become a competitor to Google Analytic

  9. Jesse Stay says:

    It is possible. I'm also curious how this will be treated in the
    Facebook.com environment. Will articles “liked” go automatically to a
    user's stream, will they be prompted? What happens when they “like” the
    button?

  10. […] Facebook’s F8 conference was just yesterday, but the information on what was changing (see here, here, and here) started leaking almost a month ago. People new about the like button and the […]

  11. I think there are a lot of mixed feelings about the Facebook Like Button.

    Here's a video that analyzes the new feature, along with some talk about the privacy issue:

    http://www.thecynch.com/analysis-of-the-faceboo

    -Cynthia

  12. […] Facebook’s F8 conference was just yesterday, but the information on what was changing (see here, here, and here) started leaking almost a month ago. People new about the like button and the […]

  13. Jeder Mensch braucht Bewegung, Sportgerte, natrlich entscheidend, und die wie Sportschuhe, Sportbekleidung wie. Bevor ich auf anderen Seiten suchen gehen, habe ich mehrere gute Seiten ber die Sportgerte finden eine Menge Hilfe bieten, knnen wir frei sein zu sehen.air jordan 16.5

  14. supervee says:

    Do you know if it is possible to view all the users who have clicked the fb:like button?

  15. Jesse Stay says:

    Yes, I suggest using FQL, and looking up the “page” and “page_fan” tables:

    http://developers.facebook.com/docs/reference/fql/

  16. Like for the hole internet but you can like only if the like button is created. acc.ali.lv here is solution..

  17. […] there is the “like” button for any page on the internet. So, not only is Facebook going to share your profile with some sites, they are now […]

Leave a comment