Hi I making one server call using <os:HttpRequest>. It returns my Friends Ids .
I need thumnail url based on the Ids But the below code returns all of my orkut friends Images. <script xmlns:os="http://ns.opensocial.org/2008/markup" type="text/os-data"> <os:ViewerRequest key="viewer" fields="name,thumbnailUrl"/> <os:OwnerRequest key="owner" /> <os:PeopleRequest key="viewerFriends" userId="@viewer" groupId="@friends" fields="name,thumbnailUrl"/> <os:PersonAppDataRequest key="buddies" method="appdata.get" userId="@viewer" appId="@app" fields="id" /> <os:PeopleRequest key="lastGift" userId="${buddies[Cur.id]}" groupId="@self" /> </script> <script type="text/os-template" xmlns:os=" http://ns.opensocial.org/2008/markup"> <ul> <li repeat="${viewerFriends}"> <os:xNavigateToPerson person="${Cur}"> <span class="name" id="id${Context.Index}">${Cur.name.givenName}</span></os:xNavigateToPerson> <span id="id${Context.Index}">${Cur.name.givenName}</span> <span id="id${Context.Index}"><img src="${Cur.thumbnailUrl}"> </span> </li> </ul> </script> On Mon, Apr 13, 2009 at 1:38 PM, Ashok.s <ashok2wo...@gmail.com> wrote: > HI > > I need my friends Thumbnail url based on Ids > > On Mon, Apr 13, 2009 at 12:42 PM, Vijaya <api.vij...@google.com> wrote: > >> >> You should be using userId="@viewer" or "@owner". >> >> Please see the following post for a complete sample: >> >> http://groups.google.com/group/opensocial-orkut/browse_thread/thread/d651c81fb03dc4cb# >> >> >> >> > > > -- > With Regards, > Ashokkumar.S, > 09711560696. > -- With Regards, Ashokkumar.S, 09711560696. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---