It might not be completely what you'd expect, but the best way of making
sure you hook every bit is:
http://code.google.com/p/opensocial-resources/wiki/ComplianceTests

It'll do everything you described and a lot more to boot :)

Also, for some guidance on how to implement php-shindig, see the Partuza
project, an example SNS implementation that uses php-shindig:
http://code.google.com/p/partuza (and a live version of it on www.partuza.nl
)

These would be the 3 main points of interest in Partuza's code:

Application/views/gadget/gadget.php : The main file where all the 'magic' of
forming the correct iframe url happens: lang, country, user preferences, app
data, security tokens, etc.. that's the best starting point for starting to
intergrate OpenSocial gadgets.

html/js/container.js : the file where the RPC calls are dealt with; The
gadgets need to be able to tell the containing page (which is / should be on
a different domain) to resize their content area, set preferences, change
titles etc.. this happens through a RPC mechanism and Partuza's end of it is
implemented there. (and Application/Controllers/setpref for the matching
container side preferences code).

Shindig/Partuza{Service,DbFetcher}.php : the shindig integration classes,
these provide the actual data to all social calls.

With those in place, the rest of the work is mostly UI based (gadget
settings, a gadget gallery, add/remove gadgets, etc)

Oh and also check out the OpenSocial Dev App (OSDA in short), great for
testing out certain API calls without having to build a full gadget every
time:
http://osda.appspot.com/
http://osda.appspot.com/gadget/osda-0.8.xml

Hope that helps!

   -- Chris

On Tue, Dec 9, 2008 at 11:07 PM, Dirk Olbertz <[EMAIL PROTECTED]>wrote:

> Hi there,
>
> I just installed shindig on my local machine and would like to
> integrate it into my distributed social network project "NoseRub":
> http://noserub.com
>
> I yet have no real clue, what kind of hooks I have to implement in
> order to "merge" shindig with NoseRub. I'm using the php version of
> shindig and already am impressed by playing around with the gadgets.
>
> This will make a nice addition on NoseRub sites like
> http://identoo.com but it get's really interesting, when apps interact
> with the OpenSocial container. Therefore, I'm looking for an
> application I can use while developing. Something where the app reads
> my contacts, accesses data from them, access my activity stream and is
> even able to add items to that activity stream.
>
> Do you know of any application/URL I can use for this purpose? My way
> of integrating Shindig to NoseRub would be to play with this
> application and then implement the "hooks" one by one to get it up and
> running.
>
> Thanks,
>   Dirk
>

Reply via email to