Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Probably you figured this out by now - however I spend quite some time to figure out a solution for this so others might find this useful:</p> <ul> <li>Get an access token: <code>https://graph.facebook.com/oauth/access_token?type=client_cred&amp;client_id=&lt;app_id&gt;&amp;client_secret=&lt;app_secret&gt;</code></li> <li>Now with the right FQL query the rest is simple: <code>https://graph.facebook.com/fql?q=select%20post_id,%20time,%20text%20from%20comment%20where%20xid=&lt;xid&gt;&amp;access_token=&lt;access_token&gt;</code> (<code>select time, text from comment where xid=&lt;xid&gt;</code>).</li> </ul> <p>Obviously you can customize the FQL query to return any parameter from the <a href="http://developers.facebook.com/docs/reference/fql/comment/" rel="nofollow">comments table</a>.</p> <p>An (actually not so minor) detail: Facebook will return only the comments which belong to your application even without an explicit <code>app_id</code> parameter. So just in case your xids are something 1, 2, 3, you don't need to worry. In fact in my tests <strong>Facebook would return no entries if the app_id was specified!</strong> (even if it was the same I used to retrieve the access token)</p> <p>As others have mentioned as well it seems not to be possible to get all comments for an app (regardless of xid or url). The <a href="https://developers.facebook.com/docs/reference/fql/comments_info/" rel="nofollow">comments_info</a> table which is sometimes referenced in posts seems to be completely empty nowadays.</p>
 

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