This code looks good to me (and works on the orkut sandbox).  If you
continue having a problem, please post to the orkut developer group
here: http://groups.google.com/group/opensocial-orkut/topics

Thanks,
~Arne


On Sep 9, 3:10 am, sure <[EMAIL PROTECTED]> wrote:
> Hi to all,
>            I am unable to get my friends list with the this code. I am
> wonder to see this problem in my sandbox. Previously it works fine. I
> think orkut made some changes in its API. Please let me know how can i
> solve this problem.
>
> My Example code
> ----------------------------
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>  <ModulePrefs title="List Friends Example">
>    <Require feature="opensocial-0.7"/>
>  </ModulePrefs>
>  <Content type="html">
>
>  <![CDATA[
>
>  <script type="text/javascript">
>
>  /**
>   * Request for friend information.
>   */
>   function getData() {
>     var req = opensocial.newDataRequest();
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
> 'viewer');
>
> req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS),
> 'viewerFriends');
>     req.send(onLoadFriends);
>   };
>
>  /**
>   * Parses the response to the friend information request and
> generates
>   * html to list the friends along with their display name.
>   *
>   * @param {Object} dataResponse Friend information that was
> requested.
>   */
>   function onLoadFriends(dataResponse) {
>     var viewer = dataResponse.get('viewer').getData();
>
>     var html = 'Friends of ' + viewer.getDisplayName();
>     html += ':<br><ul>';
>     var viewerFriends = dataResponse.get('viewerFriends').getData();
>     viewerFriends.each(function(person) {
>       html += '<li>' + person.getDisplayName() + '</li>';
>     });
>     html += '</ul>';
>     document.getElementById('message').innerHTML = html;
>   };
>
>   gadgets.util.registerOnLoadHandler(getData);
>
>   </script>
>   <div id="message"> </div>
>   ]]>
>   </Content>
> </Module>
>
> Thanking u
> suresh.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to