title: How can I parse JSON output from Facebook php graph api?
body: <p>I have the this simple code from the example sdk facebook:</p>
  
  <pre><code>if ($user) {
  try {
  $user_profile = $facebook-&gt;api('/me/friends');
  } catch (FacebookApiException $e) {
  error_log($e);
  $user = null;
  }
  }
  </code></pre>
  
  <p>If I print $user_profile the result is the list of friends in this format:</p>
  
  <pre><code>[206] =&gt; Array
              (
                  [name] =&gt; name
                  [id] =&gt; 00000000
              )
  </code></pre>
  
  <p>Is it possible to access to the fields of these arrays?
  For example I want to print only the friends' names</p>