Please see
http://www.dealoffun.com/opensocial/js/osClassBasic.js ,
for version 1.0 of Open Social JavaScript Basic wrapper, based on
Chris Chabot's library
(see
http://www.chabotc.com/generic/second-step-into-the-open-social-world).",
modified and adapted by me for Orkut, Ning and hi5 containers. It
demonstrates also some noticed differences between these containers:
- Ning is not supporting links to profiles, isOwner function and most
of arguments, but introduces argument 'origin' and getPicture
function.
Also friends arrays are implemented differently and uses
viewer.name
== "Anonymous" for non registered viewers.
- hi5 is not supporting isOwner and isViewer functions.
For demo, see my OS gadget
http://www.dealoffun.com/opensocial/welcome10.xml
,which also uses jquery and jcarousel libraries. It tested working
with Firefox at Orkut and Hi5 and with IE and Firefox at Ning. My
suggestion is to create similar official library and to eliminate
differences between containers, so that developers can use it without
adapting their code to specific OS implementations.
Cheers.
Jevgenijs Sallinens