You can't read using this edge.
To reply with a private Message:
POST /v23.0/{object-id}/private_replies HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->post(
'/{object-id}/private_replies',
array (),
'{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(
"/{object-id}/private_replies",
"POST",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{object-id}/private_replies",
null,
HttpMethod.POST,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{object-id}/private_replies"
parameters:params
HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Private replies to messages are allowed for only a limited time. The actual limit, usually several months, is subject to change.
This edge requires a Page access token with the following permissions:
read_page_mailboxes
Parameter | Description | Type |
---|---|---|
| The ID of the Page Comment or Visitor Post that you are replying to. |
|
| The text of the reply. This field is required. |
|
If successful, you will receive a response with the following fields. In addition, this endpoint supports read-after-write and can immediately read the node represented by id
in the return type.
Field | Description | Type |
---|---|---|
id | The ID of the newly created Message. |
|
user_id | The |
|
You can't delete using this edge.
You can't update using this edge.
阑尾炎看什么科室hcv9jop2ns7r.cn | 什么不什么什么hcv8jop1ns5r.cn | 胸闷吃什么药hcv8jop0ns7r.cn | 嘴苦口臭是什么原因造成的hcv9jop4ns0r.cn | 什么食物含硒多hcv7jop5ns1r.cn |
口腔异味是什么原因引起的hcv9jop1ns1r.cn | nbr是什么材质hcv9jop2ns9r.cn | 新生儿老是打嗝是什么原因hcv7jop6ns2r.cn | 梦见洗手是什么意思baiqunet.com | 掼蛋是什么意思hcv8jop6ns8r.cn |
长寿花用什么肥料最好hcv8jop9ns9r.cn | 脆皖鱼是什么鱼hcv9jop4ns3r.cn | 甲状腺功能减退是什么意思adwl56.com | 红米饭是什么米hcv8jop3ns0r.cn | 嘴唇有黑斑是什么病hcv9jop4ns1r.cn |
什么是polo衫hcv9jop4ns8r.cn | 甲状腺是什么部位hcv9jop7ns3r.cn | 肺炎吃什么药好bjcbxg.com | 受害者是什么意思hcv9jop0ns2r.cn | 取其轻前一句是什么hcv8jop7ns0r.cn |