OpenSocial 0.8 is the first version of the API that allows applications to access the list of friends of an arbitrary individual. 0.8 is not yet available in the sandbox but should be available within several days.
Unfortunately, orkut will not offer this capability right off the bat -- you will be able to fetch the friends of the application owner and current user, just as you can today. - Jason On Sep 5, 12:55 pm, sushant <[EMAIL PROTECTED]> wrote: > I am new to OpenSocial and trying to get list of friends using > PersonId of some random person. > > This is what i have so far , and it always returns null in response > for "friends" key. Note: id in populateFriends( id ) is person > id which i have verified works. > > Any help appreciated. > > function populateFriends(id) > { > var req = opensocial.newDataRequest(); > req.add(req.newFetchPeopleRequest(id), "friends"); > req.send(onLoadLevel2Friends); > > }; > > function onLoadLevel2Friends(dataResponse) > { > var list = dataResponse.get("friends").getData(); > window.alert(list.size()); > > }; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---