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

Once the Facebook comments module is installed on the site, is it possible to add and remove comments using the Graph API (or other)? For example, if a publisher (using their FB profile) would like to read a comment.

+3


source to share


3 answers


The answer is NO, this is not possible, by design.

Using Graph Explorer , you can test API calls detailed for comment objects here :

POST {object_id}/comments?message='graph-test-1'

      



... which (assuming you have a properly configured comment plugin) results in the following:

{
  "error": {
    "message": "(#100) Comments may not be added to a comment plugin", 
    "type": "OAuthException", 
    "code": 100
  }
}

      

+2


source


In theory, all comments made via the plugin have an id 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 or commenting on this identifier should generate a comment in this array. I've never done this, but I'll give it a shot and post it back with any sample code I can get. "via PHP SDK 3.1.1"

0


source


The facebook graph API cannot be used to add comments to the comment plugin, only a comment to the web version social plugin can.

0


source







All Articles