Gửi Facebook Marketing Message
Request
curl --location 'https://vpage.open.nhanh.vn/v3.0/marketing/fmmcampaigncreate?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--data '{
"campaign": {
"pageId": "page id",
"adAccountId": "act_987654321",
"segmentIds": [],
"name": "fmm message",
"budget": 200000,
"budgetType": "life_time",
"adStartAt": 1761294919,
"adEndAt": 1761813319
},
"settings": {
"noResendWithinDays": 1,
"excludes": {
"topicsIds": [],
"audienceIds": [],
"campaignIds": []
}
},
"message": {
"greeting": "welcome",
"attachments": [
{
"name": "Welcome!",
"imageHash": "63d13607cd76dc3fba71350751352d85",
"description": "We have the right hat for everyone.",
"link": "https://vpage.nhanh.vn",
"buttons": [
{
"type": "URL",
"url": "https://vpage.nhanh.vn",
"text": "View Website"
},
{
"type": "SCRIPT",
"text": "Start Chatting",
"blockId": "",
"botId": ""
},
{
"type": "CART",
"text": "View cart",
"cartId": ""
}
]
}
]
}
}'campaign
Key
Type
Description
settings
Key
Type
Description
message
Key
Optional
Type
Description
attachments
Key
Optional
Type
Description
buttons
Key
Type
Description
configCart
Key
Type
Description
Response
Failed response
errorCode
Description
Successful response
Last updated