Facebook's Like Button for the Whole Internet - Here's How it Works - Stay N Alive

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. 🙂


Discover more from Stay N Alive

Subscribe to get the latest posts sent to your email.

17 thoughts on “Facebook’s Like Button for the Whole Internet – Here’s How it Works

  1. 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…

  2. 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! 🙂

  3. 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

  4. 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?

  5. 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

What do YOU think? Let us know your thougts below!

Discover more from Stay N Alive

Subscribe now to keep reading and get access to the full archive.

Continue reading