messaging_account_linking Webhook Event Reference

When 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.

Example

{
  "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"
  }
}    

Properties

sender

속성유형설명

id

문자열

Webhook 이벤트를 트리거한 사용자의 PSID입니다.

user_ref

문자열

Webhook 이벤트를 트리거한 사용자의 user_ref입니다. 채팅 플러그인의 Webhook 이벤트에만 사용할 수 있습니다.

recipient

속성유형설명

id

문자열

페이지 ID입니다.

account_linking

Property Description Type

status

linked or unlinked

String

authorization_code

Value of pass-through authorization_code provided in the Account Linking flow

String

Note: authorization_code is only available when status is linked