Trying to get Friends list using javascript client library

Jun 13, 2009 at 7:54 AM

hi,

The code below dispalys users uid ,I need help to dispaly their comple info,i.e friends name pics e.t.c.

 

 

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>

<script type="text/javascript">
FB_RequireFeatures(["XFBML"],function()
{
  FB.Facebook.init("xxxxx","xd_receiver.htm");
  FB.Connect.showPermissionDialog("email");
  FB.Facebook.get_sessionState().waitUntilReady(function()
  {
    FB.Facebook.apiClient.friends_get(null,function(result,ex)
    {
      window.alert("friends list :" + result);
             
      // FB.Facebook.apiClient.friends_get(null, function(result){Debug.dump(result, 'friendsResult from non-batch execution '); });
      //window.alert(result);       
        
     });
   });
});
</script>

Any suggestions?