Facebook Comments on your website via Graph API instead of Comments plugin?

elliote

New Member
Facebook offers the Comments Plugin for adding comments to any website:https://developers.facebook.com/docs/reference/plugins/comments/Is it possible to GET and POST comments to your website via the Graph API?My "URL to comment on" is \[code\]http://www.examplesite.com/test/\[/code\]. If I use the above comments plugin to add a comment to my site, I can access all the comments at the following URL:https://graph.facebook.com/comments/?id=http://www.examplesite.com/testNow, is there a way to POST and GET comments to this via the Graph API? I assume my "post id" is \[code\]http://www.examplesite.com/test\[/code\]. I'm trying to use the PHP SDK like so:\[code\]$params = array( 'message' => 'Hello World!!' );$facebook->api("http://www.examplesite.com/test/comments", "POST", $params);\[/code\]Also tried to fetch comments as well:\[code\]$comments = $facebook->api("http://www.examplesite.com/test/comments", "GET");\[/code\]No dice with either of those. Can't post comments or fetch comments.Am I doing something wrong? Or is it not possible to add comments to your site via the API?
 
Back
Top