title: Can I use the Facebook graph api to get user's friends profiles pictures?
body: <p>I'm new to facebook development, after testing the adobe api in a flash game  I decided to test using the graph api communicating with my flash game. After doing basic stuff like connecting and getting my user's data, i was wondering if it's posible to get my user's friends profile pcitures, so i can pass them to UILoaders inside my flash game and show them.</p>
  
  <p>If anyone can point me to examples of basic actions which use the facebook graph api, like invite friends or posting to the wall for example, that would be wonderful.</p>
  
  <p>thanks.</p>
  
  <p>update:</p>
  
  <p>Using Nathan's suggestion I tried to get my friends and it worked:</p>
  
  <pre><code>$friends= $facebook-&gt;api('/me/friends?token='.$session['access_token']);
  var_dump($friends);
  </code></pre>
  
  <p>Then I tried to get my friend's pictures with:</p>
  
  <pre><code>foreach ($friends['data'] as $friend)
      {
          $picture= $facebook-&gt;api('/'.$friend['id'].'/photo');
      }
  </code></pre>
  
  <p>But it didn't work. any idea ?</p>
  
  <p>Thanks.</p>