Monday, November 12th, 2007

Making the OpenSocial API feel more at home

Category: JavaScript, Library, Prototype, Social Networks

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

Related Content:

  • Broadband: Feel the width
    Antony Savvas explains why building an e-commerce superhighway for the UK is proving so...
  • BranchCache makes branch offices feel like home
    Better remote office performance could make Windows 2008 R2's BranchCache feature just another reason to speed up your Windows 7 migration...
  • DCIM makes itself at home in the channel
    More data center VARs are building data center infrastructure management practices to eliminate guesswork linked to administrative...
  • Feeling the squeeze
    In an employers' market, average salaries for IT directors are still falling. Jane Dudman says it is more important than ever...
  • Feeling the pinch
    The Internet age is not over just because a few dotcoms have run into difficulty, says Martin Butler, who believes that...

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.