title: Facebook Stream.Get -- How to access data in array?
body: <p>On <code>stream.get</code>, I try to</p>
  
  <pre><code>echo $feeds["posts"][$i]["attachment"]["href"];
  </code></pre>
  
  <p>It return the URL, but, in the same array scope where "type" is located (which returns string: video, etc), trying <code>$feeds["posts"][$i]["attachment"]["type"]</code> returns nothing at all!</p>
  
  <p>Here's an array through PHP's <code>var_dump</code>: <a href="http://pastie.org/930475" rel="nofollow noreferrer">http://pastie.org/930475</a></p>
  
  <p>So, from testing I suppose this is protected by Facebook? Does that makes sense at all?</p>
  
  <p>Here it's full: <a href="http://pastie.org/930490" rel="nofollow noreferrer">http://pastie.org/930490</a>, but not all attachment/media/types has values.</p>
  
  <p>It's also strange, because I can't access through <code>[attachment][media][href]</code> or <code>[attachment][media][type]</code>, and if I try <code>[attachment][media][0][type]</code> or <code>href</code>, it gives me a string offset error.</p>
  
  <pre><code>["attachment"]=&gt; array(8) {
      ["media"]=&gt; array(1) {
          [0]=&gt; array(5) {
              ["href"]=&gt; string(55) "http://www.facebook.com/video/video.php?v=1392999461587"
              ["alt"]=&gt; string(13) "IN THE STUDIO"
              ["type"]=&gt; string(5) "video"
  </code></pre>
  
  <p>My question is, is this protected by Facebook? Or we can actually access this array position?</p>