The log out button triggers the account unlinking flow.
For more information on using the log out button, see Log Out Button.
{
"type": "account_unlink"
}
curl -X POST -H "Content-Type: application/json" -d '{
"recipient":{
"id":"<PSID>"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"Try the log out button!",
"buttons":[
{
"type": "account_unlink"
}
]
}
}
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=<PAGE_ACCESS_TOKEN>"
{ "recipient_id": "1254477777772919", "message_id": "mid.$cAAJsujCd2ORj_1qmrFdzhVa-4cvO" }
Property | Type | Description |
---|---|---|
| String | Must be |