POST api/FB/Post
Request Information
URI Parameters
None.
Body Parameters
postData| Name | Description | Type | Additional information |
|---|---|---|---|
| object | string |
None. |
|
| entry | Collection of Entry |
None. |
|
| sender | Sender |
None. |
|
| recipient | Recipient |
None. |
|
| timestamp | integer |
None. |
|
| message | Message |
None. |
|
| id | string |
None. |
|
| time | integer |
None. |
|
| messaging | Collection of Messaging |
None. |
Request Formats
application/json, text/json
Sample:
{
"object": "sample string 1",
"entry": [
{
"id": "sample string 1",
"time": 2,
"messaging": [
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
},
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
}
]
},
{
"id": "sample string 1",
"time": 2,
"messaging": [
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
},
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
}
]
}
],
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 2,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
},
"id": "sample string 3",
"time": 4,
"messaging": [
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
},
{
"sender": {
"id": "sample string 1"
},
"recipient": {
"id": "sample string 1"
},
"timestamp": 1,
"message": {
"mid": "sample string 1",
"text": "sample string 2",
"attachments": [
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
},
{
"type": "sample string 1",
"payload": {
"url": "sample string 1",
"title": "sample string 2"
}
}
],
"quick_reply": {
"payload": "sample string 1"
},
"reply_to": {
"mid": "sample string 1"
}
}
}
]
}
application/xml, text/xml
Sample:
<fallback.postData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webhookApi">
<entry>
<fallback.Entry>
<id>sample string 1</id>
<messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
</messaging>
<time>2</time>
</fallback.Entry>
<fallback.Entry>
<id>sample string 1</id>
<messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
</messaging>
<time>2</time>
</fallback.Entry>
</entry>
<id>sample string 3</id>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
<fallback.Messaging>
<message>
<attachments>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
<fallback.Attachment>
<payload>
<title>sample string 2</title>
<url>sample string 1</url>
</payload>
<type>sample string 1</type>
</fallback.Attachment>
</attachments>
<mid>sample string 1</mid>
<quick_reply>
<payload>sample string 1</payload>
</quick_reply>
<reply_to>
<mid>sample string 1</mid>
</reply_to>
<text>sample string 2</text>
</message>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<timestamp>1</timestamp>
</fallback.Messaging>
</messaging>
<object>sample string 1</object>
<recipient>
<id>sample string 1</id>
</recipient>
<sender>
<id>sample string 1</id>
</sender>
<time>4</time>
<timestamp>2</timestamp>
</fallback.postData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |