Would it be possible to fetch friends of friends using RESTFul Data
API?

On Jun 19, 2:36 pm, Jose Peleteiro <j...@peleteiro.net> wrote:
> Is there any plan to support it?
>
> On Tue, Jun 16, 2009 at 2:42 PM, Shishir Birmiwal
>
>
>
> (Google)<shishir.birmi...@google.com> wrote:
>
> > NETWORK_DISTANCE = 2 is not supported through opensocial on orkut.
>
> > cheers,
> > shishir
>
> > On Jun 6, 6:17 am, Sanjib <sbi...@gmail.com> wrote:
> >> Hi,
>
> >>     I am using below code to retrieve friends of friends (FoF) in
> >> Orkut. But its only returning A's friends (B, C, D). How do I find out
> >> all the friends of B?
>
> >> A -> {B, C, D}
> >> B -> {E, F. G}
>
> >>    var idspec_params = {};
> >>    idspec_params[opensocial.IdSpec.Field.USER_ID] =
> >> opensocial.IdSpec.PersonId.VIEWER;
> >>    idspec_params[opensocial.IdSpec.Field.GROUP_ID] =
> >> opensocial.IdSpec.GroupId.FRIENDS;
> >>    idspec_params[opensocial.IdSpec.Field.NETWORK_DISTANCE] = 2;
>
> >>    var viewerFriendsIdSpec = opensocial.newIdSpec(idspec_params);
>
> >>    var opt_params = {};
> >>    opt_params[opensocial.DataRequest.PeopleRequestFields.MAX] = 100;
>
> >>    req.add(req.newFetchPeopleRequest(viewerFriendsIdSpec, opt_params),
> >> 'viewerFriends');
> >>    req.send(myCallbackFunc);
>
> >> Thanks
> >> Sanjib- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to