app.js
/*
 * Account Link Event
 *
 * This event is called when the Link Account or UnLink Account action has been
 * tapped.
 * https://developers.facebook.com/docs/messenger-platform/webhook-reference/account-linking
 *
 */
Account Link Event
This event is called when the Link Account or UnLink Account action has been
tapped.
Account Link Event This event is called when the Link Account or UnLink Account action has been tapped .
function receivedAccountLink(event) {
	var senderID = event.sender.id;
	var recipientID = event.recipient.id;
	var status = event.account_linking.status;
	var authCode = event.account_linking.authorization_code;
	console.log("Received account link event with for user %d with status %s " +
		"and auth code %s ", senderID, status, authCode);
}
function receivedAccountLink ( event ) { var senderID = event . sender . id ; var recipientID = event . recipient . id ; var status = event . account_linking . status ; var authCode = event . account_linking . authorization_code ; console . log ( "Received account link event with for user %d with status %s " + "and auth code %s " , senderID , status , authCode ) ; }
Account Link Event
 This event is called when the Link Account or UnLink Account action has been
 tapped.
Account Link Event This event is called when the Link Account or UnLink Account action has been tapped .