Accessing the other containers could be done theoretically, but is outside
the specification of OpenSocial, so an amount of 'hacking' is required. The
problem with working outside the specification is that you are dependent on
implementation details of specific containers, which may change without
notice, so I would say: don't try this, at least until the data api is there
(and then use that).

If you want to disregard my warning and try anyway :), I think it should be
enough to write a new <script> tag in your dom with as source the opensocial
library of another container, and hope that the library does not do any
initialization.

Being logged in on the other containers is even more difficult, since nobody
knows which myspace account to link to the hi5 user that is currently logged
in.


Lets assume that the user is automatically logged in on all platforms, than
you could also take another approach:
 * Have your application open a iframe to the domain you have your code on
 * Have your application open (hidden) iframes to the myspace and ning
profilepage of the user (provided that you are on hi5 currently). You may
need to know in advance the url of the profilepage of the loggedinuser,
depending on the architecture. The user will log in automatically there, and
if your application is installed, you can then open iframes to your own
domain there as well.
 * Through interframe communication, you can have all frames work together
and in effect you can do calls to all containers.

I have to say though that the solution above is not particularly nice to
your users, and I wouldn't be surprised if doing the above would get you
blacklisted at least on some containers, so I wouldn't advise it.

As stated before, what you're trying to do is outside the OpenSocial
specification.

On 12/23/07, Dash <[EMAIL PROTECTED]> wrote:
>
>
> By default Javascript opensocial object refer to the container in
> which the app is deployed. Would like to know how to access any other
> opensocial container using opensocial javascript APIs to retrieve say
> people data.
> For ex:
> An opensocial application is deployed on say Orkut. Here the
> opensocial JavaScript object by default has access to Orkut container
> without doing any extra authentication with Orkut as it has in the
> context.
> Now the same App deployed in Orkut, needs to access Ning or Hi5 using
> the opensocial JavaScript APIs to get all the people.
> How to change the Context of opensocial object to point to different
> containers and how to do the authentication with other containers to
> get access to the other container info?
>
> Please help answer this ... I could not find on the API doc nor any
> example on how this stuff is done ...
> Dash
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to