Yes, that's what I am currently doing. But for this I have to recover
a huge amount of useless info (some users have more than 1000 friends,
I myself have close to 300) and iterate through this list. (getById
does iterate through the whole list). And I am concerned that
recovering such huge lists of friends would impact in application
performance.

On Apr 18, 8:04 pm, Jason <[EMAIL PROTECTED]> wrote:
> Hi Girino. If you already have the owner's friend collection stored,
> you can use the opensocial.Collection getById method, passing in the
> ID of the current user. If the method returns null, the owner and
> viewer are not friends. This is the most straightforward technique at
> this point.
>
> On a related note, you can use the opensocial.Person isOwner() method
> to determine whether the current user is also the owner.
>
> - Jason
>
> On Apr 17, 6:49 am, girino <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > In my application I am trying to find out if the current person
> > viewing the application (VIEWER) is actually a friend of the OWNER or
> > just an unknown passer by.
>
> > I am unable to find this in an easy way. Currently the only way I
> > found out is to recover all of VIEWER_FRIENDS and then iterate through
> > them checking if one of them is the owner.
>
> > Is there an easier way to do this?
>
> > Thanks,
> > Girino.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to