Hello,
currently the open social v0.8 is supported by the sandbox on Orkut.
I am trying to use the open social API to recieve FRIENDS OF FRIENDS
(fof).
But the code isn't working (here is the relevant piece of code):

********************************************************************************
function request()
{
   var req = opensocial.newDataRequest();

   var params = {};
   params[opensocial.IdSpec.Field.USER_ID] =
opensocial.IdSpec.PersonId.VIEWER;
   params[opensocial.IdSpec.Field.NETWORK_DISTANCE] = 2;
   var idSpec = opensocial.newIdSpec(params);
   req.add(req.newFetchPeopleRequest(idSpec), "friends");

   req.send(response);
}



function response(data)
{
   var element = document.getElementById('content_div');
   var viewerFriends = data.get('friends').getData();
   viewerFriends.each(function(person)
   {
      html += person.getDisplayName();
   });
}
********************************************************************************************

Could you tell me what I'm doing wrong please ?
Or is there any piece of code that is working for this?


Thank you :)

Kogan.



--~--~---------~--~----~------------~-------~--~----~
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