Does the Facebook Comments Social Plugin have an API where comments can be added?

Go To


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.

2012-04-03 19:45
by Ajay Pondicherry
Sounds like spamming - Robert Harvey 2012-04-03 19:46
@RobertHarvey All methods of post can be misused as spam or fishing, Facebook gives all developers more than enough rope to hang them selves, pretty much up to the developer to choose the dark side lol - Shawn E Carter 2012-04-03 20:31
No plans on outright spamming our own commentary, but would like to see how to nudge the discussion along with comment-like info we have available. Let's call it the "gray side" - Ajay Pondicherry 2012-04-03 21:27


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
2013-07-25 00:40
by ericpeters0n


In theory, all comments made through the plugin have id's which can be accessed via the graph api.

For example:


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"

2012-04-03 20:27
by Shawn E Carter
Did you ever get this to work? I am attempting the same thing but no luck - Jake Wilson 2012-05-11 05:30


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.

2016-01-18 08:20
by Artem