Class PostbackReferral
java.lang.Object
com.restfb.types.webhook.messaging.PostbackReferral
- Direct Known Subclasses:
ReferralItem
Represents the referral sub object described here:
https://developers.facebook.com/docs/messenger-platform/referral-params
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdId()
The data contaning information about the CTM ad, the user initiated the thread from.A flag indicating whether the user is a guest user from Facebook Chat PlugingetRef()
The arbitrary data that was originally passed in the ref param added to the m.me link.The URI of the site where the message was sent in the Facebook chat plugin.The source of this referral.getType()
The identifier for the referral.void
void
setAdsContextData
(PostbackReferral.AdsContextData adsContextData) The data contaning information about the CTM ad, the user initiated the thread from.void
setIsGuestUser
(Boolean isGuestUser) A flag indicating whether the user is a guest user from Facebook Chat Pluginvoid
The arbitrary data that was originally passed in the ref param added to the m.me link.void
setRefererUri
(String refererUri) The URI of the site where the message was sent in the Facebook chat plugin.void
The source of this referral.void
The identifier for the referral.toString()
-
Constructor Details
-
PostbackReferral
public PostbackReferral()
-
-
Method Details
-
toString
-
getRef
The arbitrary data that was originally passed in the ref param added to the m.me link. -
setRef
The arbitrary data that was originally passed in the ref param added to the m.me link. -
getAdId
-
setAdId
-
getSource
The source of this referral. Currently, the only possible value is “SHORTLINK”. -
setSource
The source of this referral. Currently, the only possible value is “SHORTLINK”. -
getType
The identifier for the referral. For referrals coming from m.me links, it will always be "OPEN_THREAD". -
setType
The identifier for the referral. For referrals coming from m.me links, it will always be "OPEN_THREAD". -
getRefererUri
The URI of the site where the message was sent in the Facebook chat plugin. -
setRefererUri
The URI of the site where the message was sent in the Facebook chat plugin. -
getIsGuestUser
A flag indicating whether the user is a guest user from Facebook Chat Plugin -
setIsGuestUser
A flag indicating whether the user is a guest user from Facebook Chat Plugin -
getAdsContextData
The data contaning information about the CTM ad, the user initiated the thread from. -
setAdsContextData
The data contaning information about the CTM ad, the user initiated the thread from.
-