문제 설명
Facebook 댓글 소셜 플러그인에 댓글을 추가할 수 있는 API가 있습니까? (Does the Facebook Comments Social Plugin have an API where comments can be added?)
Facebook 댓글 플러그인이 사이트에 설치되면 Graph(또는 기타) API를 통해 프로그래밍 방식으로 댓글을 추가 및 제거할 수 있습니까? 예를 들어 게시자(FB 프로필 사용)가 논평을 시드하려는 경우입니다.
참조 솔루션
방법 1:
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
}
}
방법 2:
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"
방법 3:
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.
(by Ajay Pondicherry、ericpeters0n、ShawnDaGeek、Artem)