Klasse PostbackReferral

java.lang.Object
com.restfb.types.webhook.messaging.PostbackReferral
Bekannte direkte Unterklassen:
ReferralItem

public class PostbackReferral extends Object
Represents the referral sub object described here: https://developers.facebook.com/docs/messenger-platform/referral-params
  • Konstruktordetails

  • Methodendetails

    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getRef

      public String getRef()
      The arbitrary data that was originally passed in the ref param added to the m.me link.
    • setRef

      public void setRef(String ref)
      The arbitrary data that was originally passed in the ref param added to the m.me link.
    • getAdId

      public String getAdId()
    • setAdId

      public void setAdId(String adId)
    • getSource

      public String getSource()
      The source of this referral. Currently, the only possible value is “SHORTLINK”.
    • setSource

      public void setSource(String source)
      The source of this referral. Currently, the only possible value is “SHORTLINK”.
    • getType

      public String getType()
      The identifier for the referral. For referrals coming from m.me links, it will always be "OPEN_THREAD".
    • setType

      public void setType(String type)
      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

      public void setRefererUri(String refererUri)
      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

      public void setIsGuestUser(Boolean isGuestUser)
      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

      public void setAdsContextData(PostbackReferral.AdsContextData adsContextData)
      The data contaning information about the CTM ad, the user initiated the thread from.