messaging_account_linking
Webhook Event ReferenceWhen using Account Linking, this callback will occur when the Link Account or Unlink Account button have been tapped.
The status
parameter tells you whether the user linked or unlinked their account. The authorization_code
is a pass-through parameter. allowing you to match the business user entity to the page-scoped ID (PSID) of the sender
.
{ "sender":{ "id":"USER_ID" }, "recipient":{ "id":"PAGE_ID" }, "timestamp":1234567890, "account_linking":{ "status":"linked", "authorization_code":"PASS_THROUGH_AUTHORIZATION_CODE" } }
{ "sender":{ "id":"USER_ID" }, "recipient":{ "id":"PAGE_ID" }, "timestamp":1234567890, "account_linking":{ "status":"unlinked" } }
sender
Eigenschaft | Typ | Beschreibung |
---|---|---|
| String | Die PSID des Nutzers, der das Webhook-Event ausgelöst hat. |
| String | Die user_ref des Nutzers, der das Webhook-Event ausgelöst hat. Dies ist nur für Webhook-Events aus dem Chat-Plugin verfügbar. |
recipient
Eigenschaft | Typ | Beschreibung |
---|---|---|
| String | Deine Seiten-ID. |
account_linking
Property | Description | Type |
---|---|---|
|
| String |
| Value of pass-through | String |
Note: authorization_code
is only available when status
is linked