title: Facebook api friends list
body: <p>I'm using Facebook's javascript SDK to inspect the friends list of users registered in my  application. </p>
  
  <p>I have this call:</p>
  
  <pre><code>     FB.getLoginStatus(function (response) {
          if (response.status == 'connected') {     
             FB.api('me/friends', { fields: 'id, first_name, picture', limit: 6 },function(response){
                    MY CODE TO VIEW FRIENDS PICTURE
             });
          }
          else{
                   CODE TO GET ACCESS_TOKEN
          }
    });
  </code></pre>
  
  <p>but in most of cases I get an api error like this:</p>
  
  <pre><code>response.error = {
  message: unkown error,
  code: undefined,
  type: http,
  subcode: undefined
  }
  </code></pre>
  
  <p>I tested it with my account and it works fine, even if I change privacy permission as friend's sharing.</p>
  
  <p>There is something wrong in my code?</p>