Yes, you can. The easiest way is to make a FQL call to Facebook. You should also do this by calling the Graph API, but in my testing, I could not find a way to return the data you need.
In FQL, you need to query three different tables: link_stat to get the Facebook ID for your URL, comments to get information about comments, and user to get the name of registered users who left a comment.
The following is a polygon expandable for readability.
{ "my_link": "SELECT comments_fbid, comment_count, normalized_url FROM link_stat WHERE url ='http://funcook.com/receta.php?id=53' ", "comment": "SELECT object_id, fromid, time, text, username FROM comment WHERE object_id IN (SELECT comments_fbid FROM #my_link)", "com_users": "SELECT name, uid FROM user WHERE uid IN (SELECT fromid FROM #comment)" }
You will get a JSON object. With a few test urls on my sites, I found that my_link.comment_count not always equal to count(comment) . I found cases when one of them shows zero, and the other does not.
Here it is in the script:
<script> FB.api( '/fql', {q:{"my_link":"SELECT comments_fbid, comment_count, normalized_url FROM link_stat WHERE url='http://funcook.com/receta.php?id=53'", "comment":"SELECT object_id, fromid, time, text, username FROM comment WHERE object_id IN (SELECT comments_fbid FROM #my_link)", "com_users": "SELECT name, uid FROM user WHERE uid IN (SELECT fromid FROM #comment)" }}, function(response){ console.log(response) }); </script>