title: fql for retrieving friends who has got app installed
body: <p>What would be the fql query for getting friends who has got certain application installed and has accepted given permissions and are girls?</p>
  
  <p>here is my query so far:</p>
  
  <pre><code> $fql = "SELECT uid, name, pic_square, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())";
      $response = $facebook-&gt;api(array(
          'method' =&gt; 'fql.query',
          'query' =&gt;$fql,
      ));
      $this-&gt;_helper-&gt;json($response);
  </code></pre>