I found this code:
$request_url ="https://graph.facebook.com/comments/?ids=" . $purl;
$requests = file_get_contents($request_url);
$fb_response = json_decode($requests);
But I am not finding any official FACEBOOK docs. Is there a better way, or this is the standard facebook way?
Also how do you suggest to implement the database schema?
For example i saw the commment id is something like this: 400711659874_19158387
Should I make an id field of CHAR(21) ?
Thanks
Edit1:
found some doc (a blog post) about crawling fb comments:
The code sample you’re using is functionally correct.
Initially, you’ll have to run a script to fetch comments for all the unique URL’s on your site which have the FB comments plugin. To refresh that listing periodically, you can later use the ‘comment.create’ and ‘comment.remove’ events to trigger an AJAX request which updates the comments for that particular URL in the background.