title: How do i use FQL with php api? and access token
body: <p>Grr... I cant seem to get fql working.  One thing, I think the docs are old because i dont think api() likes just an array.  Anyway:</p>
  
  <pre><code>$user_id = $facebook-&gt;getUser();//works
  $access_token = $facebook-&gt;getAccessToken();//works
  $fql = 'SELECT name from user where uid = ' . $user_id;
      $ret_obj = $facebook-&gt;api(array(
                                     'method' =&gt; 'fql.query',
                              'access_token' =&gt; $access_token,
                                    'query' =&gt; $fql,
                                   ));
  print_r($ret_obj);// dont work. actually I get exceptions
  </code></pre>
  
  <p>I've tried all kinds of combinations of params for api(), to no avail.</p>
  
  <pre><code>$user = curl('https://graph.facebook.com/'.$user_id.'?access_token='.$access_token);
  </code></pre>
  
  <p>does work, though.</p>