Google's OpenSocial API could convert iGoogle into a social media platform

By Scott M. Fulton, III | Published April 22, 2008, 12:01 PM

A simple demonstration of adding access to the OpenSocial API through iGoogle gadgets is the hot topic of discussion among both Web developers and social network aficionados today, as Google looks more poised to take on the social net leaders.

A new tool for skilled and amateur developers to build social networking gadgets using version 0.7 of the OpenSocial API, launched by Google last October, looks very conspicuously like a way to populate the service's iGoogle personalized home pages with features that could put it in competition with social networking sites like MySpace.

This morning, a video posted to the Google Code Blog demonstrates how iGoogle page gadgets can be built using the latest version of the OpenSocial library. As a developer identified as Jake demonstrates, gadgets are created by embedding HTML and JavaScript code into XML <content> elements, though iGoogle developers already knew that.

The change comes when adding the library to the <require> declarations at the top of the XML code. That library enables the .newDataRequest method through JavaScript, which lets the programmer instantiate a variable that represents the connection to OpenSocial's data stream. From there, arrays of friends' names are retrieved using the .newFetchPersonRequest method. A callback function, generated using the .send method, picks up control asynchronously and renders the contents of the arrays to the browser, using a variation of an "each" iteration loop.

For JavaScript programmers, it should be nothing out of the ordinary; mastery of the basic concept may require just a few hours' practice. Google is calling this concept the "developer's sandbox," but it's clear that this little playground is intended for pretty rapid growth.

"Jake" demonstrates how a developer playing with JavaScript in iGoogle's sandbox could, just for the fun of it, start building gadgets that could very rapidly build its social garden into a formidable opponent to MySpace and Facebook.

One example of that intention comes by way of Google's extended explanation of its new "canvas view," which is its version of an expanded frame control that can be categorized using tabs. The example shows how the control can be expanded to show rows revealing thumbnails of book covers and their titles, corresponding to books that friends in the OpenSocial system say they're reading or have read.

The example does not show price or availability, though it doesn't seem likely that such an extrapolation would be off limits to developers playing in Google's sandbox.

View comments by with a score of at least

PDC 2009: What have we learned this week?

There was the freebie that no one will forget, the heebie-jeebies courtesy of Scott Guthrie, and a teensy bit clearer picture of how this cloud thingie should work.

Live report: Will Google Chrome OS change Linux?

The mysteries of just what Chrome OS is, and how much of an operating system it truly is, may be resolved today.

PDC 2009: Microsoft cares about Web browser performance

The effort to give users of the world's dominant Web browser the impression of quality, is a personal one for the man who leads that battle.

Nokia re-affirms its commitment to Symbian, sort of

Maemo won't necessarily be replacing Symbian in the Nokia N-Series, but that's definitely a place where it will be found.

E-book readers will be in short supply this holiday season

E-readers are hot this year, and a lot of compelling new products have been released, but are there enough electrophoretic displays to go around?

Sony looks to finally open a single storefront for downloads

Sony has had many different download portals for movies, music, e-books, and games, and now it's looking to make a single shop for all of it.

Tuning out the tablet: Time to give the endless speculation a rest

Wide Angle Zoom: Wishing and hoping and thinking and praying....won't put an iTablet on the market.

Five improvements for IT managers in 2010

If businesses are to improve their efficiency for next year, they need to stop and reassess the basic tenets of their job.

AOL's spinoff from Time Warner to shed 2,500 jobs

As AOL moves toward become an independent company again, it will cut nearly a third of its workforce.

Gartner: SMS-based money transfer will be bigger than mobile browsing, search

Gartner issues its predictions for the 10 things our phones will be doing in 2012.

Don't forget to upgrade to Firefox 3.6 beta 3 today

Mozilla has released the latest beta its Firefox 3.6 browser software, just over one week after beta 2.