I m trying to get a list of tv shows that a user has liked on Facebook (with a comma between them). The code below only shows the last array, however if I do it using "print_r($fqlResults)" it shows all of the arrays.
$fql = "SELECT name, type FROM page WHERE type IN ( TV SHOW ) AND page_id IN (SELECT page_id FROM page_fan WHERE uid = me())";
$fqlResults = $facebook->api(array(
method => fql.query ,
query =>$fql,
));
foreach( $fqlResults as $keys => $values ){
$tvShows = $values[name];
}
Any responses will be appreciated :)