title: How to show all my facebook 'likes' and the associated total of 'fans'?
body: <p>I have been testing a way to show all my facebook 'likes' and the associated amount of 'fans'. The code below works but is very...very...very slow, and i assume it is so slow because of the large number of queries that have to go through Facebook's api due to the foreach function. Is there a away to do the same thing as i do below, but with only one query (not using the foreach)?</p>
  
  <pre><code>require_once('src/facebook.php');
  $facebook = new Facebook(array(
      'appId'  =&gt; '12345',
      'secret' =&gt; 'blablabla',
      'api' =&gt; '172737262',
      'cookie' =&gt; true,
  ));
  $likes = $facebook-&gt;api('/me/likes');
  
  foreach($likes[data] as $value){
  $id = $value['id'];
  $fans = $facebook-&gt;api(array(
      'method' =&gt; 'fql.query',
      'query' =&gt; "select fan_count,name from page where page_id = $id;"
  ));
  
  echo "$id - {$fans[0]['fan_count']} - {$value['name']}&lt;br&gt;";
  unset($id,$fans);
  }
  </code></pre>