I use the PHP SDK to get results for a specific keyword in public messages
$q = "something"; $results = $facebook->api('/search/','get',array('q'=>$q,'type'=>'post','limit'=>10));
this query returns a similar result:
Array ( [id] => id [from] => Array ( [name] => Some Random Name [id] => id ) [message] => Hello hello hello. something [privacy] => Array ( [value] => ) [type] => status [created_time] => 2013-10-31T10:20:58+0000 [updated_time] => 2013-10-31T10:20:58+0000 )
as you see the section [type] => status , it can be a status, photo, link, etc. I would like to receive only photos from public messages that contain the search keyword (in other words, search in public messages that contain $ q and filter / get / limit 10 results that have only [type] => photo value)
How can i achieve this? I assume that FQL cannot help with this, as I am looking in public posts.
source share