Vaclav -

I've heard this idea mentioned before and I think it is a great long term
goal for opensocial.

Now, if you are actually a social network and just want to fetch your own
data with the js apis then you could set this up for yourself. You would
simply include the opensocial-0.8 feature js and its required dependencies
on your page and then you could call all of the data apis back to your own
server. The request* methods obviously wouldn't work because we rely on rpc
for those but I think you get the general idea here.

Now, if you do not run your own social network you could still use the
opensocial js as sort of a client library for the restful apis.. if that's
what you are going for. Again, the request* methods wouldn't work and the
rest of the opensocial js methods may not exactly match the SN's code. -but-
with rest being a standard, all of the newFetchXxx methods should execute
just fine.

So both of these ideas are not really supported at this point of time, but
if you wanted to mess around with things in this direction then you could
get them both to work.

Have fun!

- Cassie



On Fri, Jul 18, 2008 at 7:36 AM, Václav Tolar
<[EMAIL PROTECTED]>wrote:

> Hi Chris&Chewy,
>
> Thanks for responses. You understood what I want to do.
>
> I know about RESTful API that it's definitely a feasible option for me. I
> was just wonder if it is also possible to include JavaScript API to my page
> and call social container directly through it. I managed to make working
> basic 'get friends' example in such way. I needed to write special initial
> JS for OpenSocial's configuration. I observed that OpenSocial API is not
> prepared for such option.
>
> Thanks,
> Vaclav
>
> -----Původní zpráva-----
> Od: Chris Chabot [mailto:[EMAIL PROTECTED]
> Odesláno: 18. července 2008 16:00
> Komu: [email protected]
> Předmět: Re: OpenSocial JS API in container context?
>
> Hey Václav,
>
> Your question doesn't make it entirely clear what exactly your trying
> to accomplish so forgive us for guessing to what your trying to do :)
>
> As Chewy pointed out, if you want to somehow include the javascript
> libraries from an open social container in your own site and have it
> work (being able to get profile information via a newPersonRequest()
> in your own html page for instance), then no that's indeed not
> possible. There's a lot more in play then just a bit of javascript
> (authentication, configuration, cross domain policies, and so on).
>
> What might help you accomplish what your after (if your trying to get
> to social information inside of your own site), is the upcomming
> RESTful API, which is made for 3rd parties connecting to the social
> data back-end of a social network site. See this link for more info:
>
> http://sites.google.com/a/opensocial.org/opensocial/Technical-Resources/opensocial-spec-v08/restful-api-specification
>
> Also don't overlook the possibility of creating an open social gadget,
> there is a potential audience of aprox 300 mil (i don't know what the
> exact number is today, it was 280 before and it's growing rapidly), so
> quite often when you have a great idea, making a gadget and posting it
> on those social network sites (myspace, orkut, hi5, imeem, idtail,
> netlog, etc etc etc) is a great way to reach a large audience and can
> save a lot of work of having to attract people to go visit your own
> site. It's not always the best option, but depending on your concept,
> sometimes it is :)
>
>        -- Chris
>
> On Jul 18, 2008, at 3:31 PM, Matthew (Chewy) Trewhella wrote:
>
> > For example?
> > I think you're asking if you can host a gadget on example.com and
> > call the
> > javascript include from, say, orkut.com right?
> >
> > This won't really work, because you don't ever call the JS directly
> > - it
> > comes from a module/require statement.
> >
> > So, no, I don't think that will work.
> >
> > Apologies if I'm totally wrong here, and have got the wrong end of the
> > stick.
> > Chewy
> >
> > 2008/7/18 Václav Tolar <[EMAIL PROTECTED]>:
> >
> >> Hi all,
> >>
> >> Is possible to use opensocial javascript API in container context
> >> (from my
> >> html pages) directly?
> >>
> >> Thanks,
> >> Vasek
> >>
> >> Václav Tolar
> >> J2EE Senior Developer
> >> ---------------------------------------------
> >> Cleverlance - The Clever Enterprise Solutions
> >> www.cleverlance.com<http://www.cleverlance.com>
> >>
> >> European Business Center
> >> Dukelských hrdinů 34
> >> 170 00 Praha 7
> >> Czech Republic
> >>
> >> Mobil: +420 605 439 657
> >> Tel.: +420 266 177 166
> >> Fax: +420 266 177 155
> >>
> >>
> >>
>
>

Reply via email to