title: Facebook Graph API : Parsing the output
body: <p>I am trying to get the names of my friends using FB Graph API with this call :</p>
  
  <pre><code>$friends = file_get_contents('https://graph.facebook.com/me/friendsaccess_token='.$session["access_token"]);
  
  echo "Friends : $friends\n";
  </code></pre>
  
  <p>This gives me a list of the form :</p>
  
  <pre><code>{"data":[{"name":"ABC XYZ","id":"12212839"},{"name":"PQR GHI","id":"5004678"}]}
  </code></pre>
  
  <p>I want to be able to store only the NAMES in an array. How do I use $friends to get the names ? Something like $friends['name'] doesn't seem to work.</p>
  
  <p>Please help. 
  Thank you.</p>