title: Facebook Graph API Filter Search Results
body: <p>I'm using PHP SDK to get the results for a certain keyword within public posts</p>
  
  <pre><code>$q = "something";
  $results = $facebook-&gt;api('/search/','get',array('q'=&gt;$q,'type'=&gt;'post','limit'=&gt;10));
  </code></pre>
  
  <p>this query returns a similar result to this one:</p>
  
  <pre><code>Array
  (
      [id] =&gt; id
      [from] =&gt; Array
          (
              [name] =&gt; Some Random Name
              [id] =&gt; id
          )
  
      [message] =&gt; Hello hello hello. something
      [privacy] =&gt; Array
          (
              [value] =&gt; 
          )
  
      [type] =&gt; status
      [created_time] =&gt; 2013-10-31T10:20:58+0000
      [updated_time] =&gt; 2013-10-31T10:20:58+0000
  )
  </code></pre>
  
  <p>as you see the <strong>[type] => status</strong> section, this can be status, photo, link etc. I'd like to get only photos from public posts which contain the search keyword (in other words, search in public posts which contain $q and filter/get/limit 10 results which have only [type] => photo value)</p>
  
  <p>How can i achieve this? I assume FQL can't help on this since i search within public posts.</p>