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.


This is mostly a techincal problem; for example, how would you identify who
the user making the requests was?

The RESTful API is really what you want.


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