Monday, November 12th, 2007

Making the OpenSocial API feel more at home

Category: JavaScript, Library, Prototype, Social Networks

Chris Chabot has been doing a lot of experimentation with the new OpenSocial APIs. He has written up his experience and created two prototype wrappers.

The first short article has some general information and background.

The second article includes the first library you can tell to load (owner, viewer, ownerFriends and/or
viewerFriends) information, and presents this information in an uniform way (instead of having to do different type of calls for different information fields) and with proper consistent error handling. With it you can very easily create your first OpenSocial container application in a friendly prototype style environment. You can take a direct look at the library itself.

The third article contains a Ajax.Request implementation, since Prototype’s version won’t work well or even at all in the cross domain environment of open social containers, it allows you to re-use your current Prototype based programs by trying to mimic Prototype’s Ajax call as well as possible given the constraints of the situation. Under the hood, _IG_FetchContent is used to talk back to the server.

It is good to see people take the raw APIs and make them feel more like their library of choice.

Posted by Dion Almaer at 9:10 am

3.9 rating from 29 votes


Comments feed TrackBack URI

Dion, I am not clear as yet whether OS-API provides facility to write NON-Web based apps? I mean, I want to called my LinkedIN profile related stuff on my own website or some firefox extension than integrating with other Social Network.

Comment by Adnan Siddiqi — November 13, 2007

here is good link for AJAX tutorial

Comment by Ajaxpert — November 16, 2007

Leave a comment

You must be logged in to post a comment.