Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook FQL returning inconsistent results?
    primarykey
    data
    text
    <p>I've got a question around why some items are not returning via a Facebook FQL query.</p> <p>The following query:</p> <pre><code>https://api.facebook.com/method/fql.query?query=select%20page_id,%20name,%20type,%20fan_count%20from%20page%20where%20name=%27Bauhaus%27%20and%20type%20=%20%27MUSICIAN/BAND%27%20order%20by%20fan_count%20desc </code></pre> <p>Is supposed to return me pages whose name = 'Bauhaus' and type is 'Musician/Band'. The result is:</p> <pre><code>&lt;fql_query_response list="true"&gt; &lt;page&gt; &lt;page_id&gt;186907181359330&lt;/page_id&gt; &lt;name&gt;Bauhaus&lt;/name&gt; &lt;type&gt;MUSICIAN/BAND&lt;/type&gt; &lt;fan_count&gt;1&lt;/fan_count&gt; &lt;/page&gt; &lt;page&gt; &lt;page_id&gt;175833025805207&lt;/page_id&gt; &lt;name&gt;Bauhaus&lt;/name&gt; &lt;type&gt;MUSICIAN/BAND&lt;/type&gt; &lt;fan_count&gt;0&lt;/fan_count&gt; &lt;/page&gt; &lt;/fql_query_response&gt; </code></pre> <p>If I then add a constraint, page_id=109194179106090, which doesn't appear in the above list: <code>https://api.facebook.com/method/fql.query?query=select%20page_id,%20name,%20type,%20fan_count%20from%20page%20where%20page_id%20=%20109194179106090</code>, I get this result:</p> <pre><code>&lt;fql_query_response list="true"&gt; &lt;page&gt; &lt;page_id&gt;109194179106090&lt;/page_id&gt; &lt;name&gt;Bauhaus&lt;/name&gt; &lt;type&gt;MUSICIAN/BAND&lt;/type&gt; &lt;fan_count&gt;100527&lt;/fan_count&gt; &lt;/page&gt; &lt;/fql_query_response&gt; </code></pre> <p>Why should adding a constraint return me an item that isn't in the original query?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload