Finding common friends?

0 views
Skip to first unread message

Paul Lindner

unread,
May 19, 2008, 5:56:27 PM5/19/08
to opensocial-an...@googlegroups.com
We’re trying to wrap our heads around the updates to IdSpec and how it might be used to support fetching common friends between two users.  We have networkDistance, group_id, and user_id.    I’m also wondering if it’s even possible to do a fetchPeopleRequest with a list of IDs.

Anyone have any clue?

Cassie

unread,
May 22, 2008, 6:53:53 AM5/22/08
to opensocial-an...@googlegroups.com
Okay, so I think it goes like this:

idSpec 1: user_id = VIEWER group_id = FRIENDS
idSpec 2: user_id = OWNER

newFetchPeopleRequest(idSpec1, {filterType: isFriendsWith,
filterOptions: {idSpec: idSpec2}}
returns all of the viewers friends who are also friends with the owner.

You could also add networkDistance to idSpec1 to get all of the
viewers friends of friends who are also friends with the owner, and so
forth.

As for the list of ids, you used to be able to pass in an array of ids
to newFetchPeopleRequest. now, you just pass in one idSpec and the
userId field on idSpec can be a single id or an array of ids.

I hope that helps somewhat!
- Cassie

Paul Lindner

unread,
May 22, 2008, 11:16:50 AM5/22/08
to opensocial-an...@googlegroups.com
Okay, it's starting to make sense.

We're going to need to document these use cases somewhere..

> You received this message because you are subscribed to the Google Groups "OpenSocial and Gadgets Specification Discussion" group.
> To post to this group, send email to opensocial-an...@googlegroups.com
> To unsubscribe from this group, send email to opensocial-and-gadg...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/opensocial-and-gadgets-spec?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--
Paul Lindner ||||| | | | | | | | | |
lin...@inuus.com

Reply all
Reply to author
Forward
0 new messages