Class PostbackReferral

  • Direct Known Subclasses:
    ReferralItem

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

      • 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.
      • 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".