Hi Justin,
 
# the best way to check if a person is owner is to use the person.isOwner() 
method, rather than getting there id's and comparing them.
# to check for friends there is no way now other than iterating through all 
friends, v0.8 will bring some solution this and also for friends of friends.. 
take a look at these threads for the accepted proposal- 
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/95570a27ab945f6d/65d409d017107cfb
 , 
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/6b2ba00f8a38cb45/4374c5e1e22eaacf
Thanks ~@@[EMAIL PROTECTED] http://aakash-bapna.blogspot.com 



> Date: Fri, 2 May 2008 10:31:30 -0500> From: [EMAIL PROTECTED]> To: 
> opensocial-api@googlegroups.com> Subject: [OpenSocial] friend set logic for 
> opensocial> > > it seems to me to be a bit silly to have such large friend 
> lists> returned. are their any functions to do some set logic on the server?> 
> > for example:> #how would you efficiently find all friends in common between 
> the> viewer and the owner? (on sites like myspace, friend lists can be in> 
> the 10s of thousands.)> -would the strategy follow a paging option?> > #what 
> is the most effective way to determine if the viewer is the> owner? right now 
> you have to get the id for both, and then check.> this seems odd. if you 
> continue down this logic.> #what is the most effective way to determine if 
> the viewer is a friend> of the owner?> #....is a friend of a friend of the 
> owner?> > -- > -- > Justin Kruger> http://jDavid.net> [EMAIL PROTECTED]> > 
> "If you are successful, it is because somewhere, sometime, someone> gave you 
> a life or an idea that started you in the right direction.> Remember also 
> that you are indebted to life until you help some less> fortunate person, 
> just as you were helped." --Melinda Gates> > 
> _________________________________________________________________
Get Free (PRODUCT) REDâ„¢  Emoticons, Winks and Display Pics.
http://joinred.spaces.live.com?ocid=TXT_HMTG_prodredemoticons_052008
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
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