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

Google Chrome 4: Yes, it's fast, but is it usable?

As Betanews readers have responded to our stories about Chrome's JavaScript superiority...Does that mean we'd actually use this browser? Well...

Video: Netflix on PlayStation 3

Netflix has come to the PlayStation 3 via Blu-ray and BD-Live.

Verizon Wireless launches new Android, Chocolate, and ruggedized phones

The lower-priced Eris joins the Droid, while the Chocolate gets a touchscreen and more music playback.

Early sales figures for Windows 7 nicely high, but do we know why?

Fans of triple-digit surges in figures quoted by Betanews will love this one, as it appears Microsoft rediscovered how to pull off a software launch.

Myka announces its latest Linux-based 'net top box'

Myka's ION brings Boxee, XMBC, and much more to HDTVs.

What hath Mac wrought? A remembrance after a quarter-century

The reason there's a Macintosh today is not because of some brilliant flash of engineering genius, but because Apple had the audacity to learn from its mistakes.

Early build of Moblin 2.1 improves connectivity, but not device support

The Linux Foundation's Atom-centric OS yesterday received a major overhaul with the project release of Moblin 2.1 for netbooks and nettops.

The iPhone's China syndrome: Sales of 5,000 and climbing

There's actually a country where Apple's device is not a godsend, where sales can be measured in the dozens.

New European counterpart to FCC will ensure 'a more neutral net'

Late Thursday night, the ruling telecom administrators of the EU's member nations signed away their final authority to a new entity overseen by the EC.

Sophos study suggests Windows 7 UAC's default setting is self-defeating

Without any anti-virus installed, a Sophos test showed, User Account Control was only capable of thwarting just one malware package out of ten samples chosen.

Indiscreet tweet trips awareness of Web SSL vulnerability

A group of high-level security engineers had been making progress on thwarting a low-level threat to the Web, until somebody blurted it all out on Twitter.