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

Latest Firefox 3.6 beta fixes 133 bugs, promises faster page load times

A once-sluggish beta testing process has kicked into overdrive, with astonishing success at finding serious bugs. Will Mozilla be able to fix all the others in time?

Apple invokes DMCA, claims Psystar is 'trafficking in circumvention devices'

In trying to close the book on possibly the last attempt at a Mac clone, Apple cites from its own landmark case...but may actually be misinterpreting it.

The fallacy of Facebook privacy

Carmi Levy | Wide Angle Zoom: If an insurance company learns something interesting about its client through the Internet, is that snooping?

Microsoft 'worked with Apple' for Silverlight on iPhone, says Goldfarb

By not making such a big deal out of trying to stream video to the iPhone, Microsoft got a big deal out of it, revealed the Silverlight product manager.

Confirmed: Office 2010 to ship in June

Two weeks after Microsoft had been expected to draw a clearer roadmap for its principal applications suite, it's finally ready to commit to the end of H1.

New EU antitrust commissioner will oversee Microsoft, Oracle+Sun, Intel issues

As one of Europe's most prominent politicians shifts positions in January, her replacement remains a question mark over technology's biggest issues.

Without its own 'iTablet' yet, is Apple missing the boat?

Steve Jobs is on record as dissing "single-purpose" devices like e-readers. But given their recent popularity, was that a mistake?

Not-so-mobile battery life: Time to force the issue

Carmi Levy | Wide Angle Zoom: If power efficiency is important when you buy a car or even a motorcycle, why shouldn't it matter for a smartphone?

Clicker.com cuts through the Web video chaos

In a world where homemade video and Hollywood movies travel the same pipeline, it's good to have a real search engine to cut through the clutter.

Microsoft's Ray Ozzie: 'Nobody's going to be 100% open'

The mobile apps ecosystems of the world may converge over time, led by apps being ported over across platforms, according to the Chief Software Architect.

A case study in improving software: What Office 2010 can learn from Notion 3

A music composition product gambles with a complete overhaul, in an effort to make headway against two well-known competitors in a tough market.