title: Parsing facebook json feed
body: <p>The returned json-feed by Facebook is hard to decode into the seperate paramaters. Can't see what I am doing wrong here....</p>
  
  <pre><code>&lt;?php 
  
  $request_url ="https://graph.facebook.com/posts?ids=VGardena,obertauern&amp;access_token=EAACx6A6Hb9cBAB8tomDGj9N1FpE2xcWMVE7ad0Y2q08XUjVmGXsQ2aPCEKbX0iiRxK6M6FWYl1os3I2k5ZC1uY2cnJ1bZB2He3KTOpbwNo9KAZAzweShCUFvOt9Nfb2jZB8gHZCiO8l66dxsqdMCAbgxIlkTqJ8EZD&amp;limit=2";
  $requests = file_get_contents($request_url);
  
  $fb_response = json_decode($requests,true);
  
  
  
  foreach($fb_response as $item){
  
  echo 'Message: ' . $item-&gt;message . '&lt;br /&gt;';//there is no name returned on a comment
  echo 'From ID: ' . $item-&gt;from-&gt;id . '&lt;br /&gt;';
   echo 'Message: ' . $item-&gt;message . '&lt;br /&gt;';
   echo 'Timestamp: ' . $item-&gt;created_time . '&lt;br /&gt;&lt;br /&gt;';
  }
  
  ?&gt;
  </code></pre>