imploding array_keys from Facebook JSON data
<p>Need some help with the sample code provided the facebook.  I can't get it to return a series of IDs that I need to run a sql query against.</p>

<pre><code>   $friends = '{
   "data": [
      {
         "name": "Paul",
         "id": "12000"
      },
      {
         "name": "Bonnie",
         "id": "120310"
      },
      {
         "name": "Melissa",
         "id": "120944"
      },
      {
         "name": "Simon",
         "id": "125930"
      },
      {
         "name": "Anthony",
         "id": "120605"
      },
      {
         "name": "David",
         "id": "120733"
     }
   ]
}';

$obj = json_decode($friends);
print $obj-&gt;{'data'}[0]-&gt;{'name'};
</code></pre>

<p>I can return the "Paul"</p>

<p>what I want is to return all the id's using implode(array_keys($obj),",")</p>

<p>I am only getting data to return.</p>

<p>What I'd like to do is retrieve all the IDs separated by a comma.</p>

<p>Thanks!</p>
