facebook/wordpress — pull request #322 by niallkennedy (2012-11-22 19:10:36+00:00)
Title: do not override comments_open if no existing comments stored by Facebook

The [Facebook Comments Box](https://developers.facebook.com/docs/reference/plugins/comments/) displays comments for the given URL stored on Facebook servers sorted chronologically or by the social interests of the current viewers. The Comments Box always invites new comments; there is no way to freeze comments accepted for the given URL at a certain point in time (beyond never letting anything pass moderation) or specify a read-only mode.

The always-open nature of the Comments Box overrides the decisions of a WordPress site wanting to make a specific page or post open or closed to comments, or to close comments after a set period of time.

If a post permalink has no comments stored on Facebook, as determined by the Graph API call to output search engine friendly noscript markup on the page, then we should remove the filter we've attached declaring comments always open. If there are no previous comments to display through the Comments Box and the site would not like to invite further comments then there should be no Comments Box displayed on the webpage.