Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReferralEvent

This callback will occur when the user already has a thread with the bot and user comes to the thread from:

  • Following an m.me link with a referral parameter
  • Clicking on a Messenger Conversation Ad
  • Starting or resuming a conversation from the customer chat plugin.

For tracking referrals in new threads, refer to PostbackEvent.

subscription

messaging_referrals

guides

Check official reference.

Hierarchy

Index

Properties

[toStringTag]: "MessengerEvent"
adId: undefined | string

Id of ad if source is 'ADS'

category: "action"
isEcho: boolean

Indicate whether the event is an echo.

isGuestUser: boolean

A flag indicating whether the user is a guest user from Facebook Chat Plugin.

isStandby: boolean

Indicate whether the event is sent to a standby channel.

payload: any
platform: "messenger"
ref: string

The optional ref attribute set in the referrer.

refererUri: undefined | string

The URI of the site where the message was sent in the Facebook chat plugin.

The user that triggered the webhook event.

source: ReferralSource

The source of the referral.

timestamp: number
type: "referral"
user: null | MessengerUser

Generated using TypeDoc