Note that there are some explanatory texts on larger screens.

plurals
  1. POFQL returning different results when queried from APP
    primarykey
    data
    text
    <p>I have a process which scrapes the stream table periodically for given users, importing any new comments or posts which have come in. When I test my query using the facebooks fql.query link, the correct results are listed. For example:</p> <p>SELECT post_id, app_id, actor_id, created_time, updated_time, message, comments, app_data, likes, attachment, permalink FROM stream WHERE source_id = "652904096" ORDER BY updated_time DESC LIMIT 0, 20</p> <p><a href="https://api.facebook.com/method/fql.query?query=SELECT%20post_id,%20app_id,%20actor_id,%20created_time,%20updated_time,%20message,%20comments,%20app_data,%20likes,%20attachment,%20permalink%20FROM%20stream%20WHERE%20source_id=652904096%20ORDER%20BY%20updated_time%20DESC%20LIMIT%200,%2020&amp;access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" rel="nofollow">https://api.facebook.com/method/fql.query?query=SELECT%20post_id,%20app_id,%20actor_id,%20created_time,%20updated_time,%20message,%20comments,%20app_data,%20likes,%20attachment,%20permalink%20FROM%20stream%20WHERE%20source_id=652904096%20ORDER%20BY%20updated_time%20DESC%20LIMIT%200,%2020&amp;access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</a></p> <p>The first result is from earlier today.</p> <p>But when I use my app and the php sdk, with the same query and access token, the first result is from December 23rd</p> <p>Here is how I am calling the query from my App</p> <pre><code>$result = $fb-&gt;api(array( "method"=&gt;"fql.query", "query"=&gt;$query, "access_token"=&gt;$oauth_token )); </code></pre> <p>Does anyone have any idea why this could be occurring? I have added debug statements to the PHP SDK to confirm that the query and access tokens are the same.</p>
    singulars
    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.
 

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