A Facebook comment
| 名前 | 説明 |
|---|---|
| ページの公開コンテンツへのアクセス | This feature permission may be required. |
GET /v24.0/{comment-id} HTTP/1.1
Host: graph.facebook.com/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{comment-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result *//* make the API call */
FB.api(
"/{comment-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{comment-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{comment-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];| フィールド | 説明 |
|---|---|
idtoken with structure: Comment ID | The comment ID |
For a comment made by a page, the page admin who wrote it. A page access token is required to access this field. | |
application | The app this comment was published by |
attachment | Link or photo attached to the comment |
can_commentbool | Whether the viewer can reply to this comment |
bool | Whether the viewer can hide this comment from everyone except the comment author and the author's friends. This can only be true for comments on Page posts |
bool | Whether the viewer can like this comment |
can_removebool | Whether the viewer can remove this comment |
can_reply_privatelybool | Whether the page viewer can send a private reply to this comment |
comment_countunsigned int32 | Number of replies to this comment |
created_timedatetime | The time this comment was made |
fromUser|Page | The profile that made this comment |
bool | Whether this comment is hidden from everyone except the comment author and the author's friends |
bool | Whether the comment is a private comment |
like_countunsigned int32 | Number of times this comment was liked |
live_broadcast_timestampunsigned int32 | Time the comment was made on a live video |
messagestring | The comment text |
message_tags | Profiles tagged in mentions in the message |
The object the comment is on | |
parent | For comment replies, the comment this is a reply to |
permalink_urluri | The permanent static URL to the comment |
private_reply_conversation | If private reply was sent to this comment, gets private conversation between the page and author of the comment that was started by private reply |
user_likesbool | Whether the viewer has liked this comment |
| エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 80001 | There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 200 | Permissions error |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 190 | Invalid OAuth 2.0 Access Token |
| 283 | That action requires the extended permission pages_read_engagement and/or pages_read_user_content and/or pages_manage_ads and/or pages_manage_metadata |
| 2500 | Error parsing graph query |
| 459 | The session is invalid because the user has been checkpointed |
| 613 | Calls to this api have exceeded the rate limit. |
| 210 | User not visible |
commentsのエッジにPOSTリクエストを以下のパスで送信できます: | パラメーター | 説明 |
|---|---|
attachment_idnumeric string or integer | ID for a photo attachment to associate with this |
attachment_share_urlURL | Link to set the comment attachment to. Does not include the url in the message |
attachment_urlURL | Link to set the comment attachment to |
is_offlineboolean | Whether the comment was originally made while offline |
messageUTF-8 string | Same as the text param 絵文字をサポートします |
textUTF-8 string | The text of the comment that allows emoji 絵文字をサポートします |
idによって表されたノードを戻り値の型で読み込みます。id: token with structure: Comment ID, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 190 | Invalid OAuth 2.0 Access Token |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 200 | Permissions error |
| 1705 | There was an error during posting. |
| 459 | The session is invalid because the user has been checkpointed |
/{comment_id}にPOSTリクエストを送信してa Commentを更新できます。| パラメーター | 説明 |
|---|---|
attachment_idnumeric string or integer | ID for a photo attachment to associate with this |
attachment_share_urlURL | Link to set the comment attachment to. Does not include the url in the message. |
attachment_urlURL | Link to set the comment attachment to. |
boolean | Is this comment hidden? Only applicable to Page comments |
messageUTF-8 string | The text in the new comment message 絵文字をサポートします |
success: bool, | エラー | 詳細 |
|---|---|
| 200 | Permissions error |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 100 | Invalid parameter |
| 80001 | There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 190 | Invalid OAuth 2.0 Access Token |
| 210 | User not visible |
/{comment_id}.success: bool, | エラー | 詳細 |
|---|---|
| 200 | Permissions error |
| 100 | Invalid parameter |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 190 | Invalid OAuth 2.0 Access Token |