Once the Facebook Comments Plugin is installed on a site, can comments be added and removed programatically via the Graph (or other) API? For example, if a publisher (using their FB profile) would like to seed commentary.
The answer is NO, this is not possible, by design.
Using the Graph Explorer, you can test the API calls detailed for Comments objects here:
POST {object_id}/comments?message='graph-test-1'
...which (assuming you have a properly configured Comment plugin) results in this:
{
"error": {
"message": "(#100) Comments may not be added to a comment plugin",
"type": "OAuthException",
"code": 100
}
}
In theory, all comments made through the plugin have id's which can be accessed via the graph api.
For example: https://graph.facebook.com/comments/?ids=http://developers.facebook.com/docs/reference/plugins/comments
&&
https://developers.facebook.com/docs/reference/api/Comment/
Posting like or comment to that id should generate a comment in that array. I have never done this, but i will give it shot and post back with any sample code i can get working. "via PHP SDK 3.1.1"
the facebook's graph API may not be used to add comments to a comment plugin, only comment social plugin of web version can do it.