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

        public String 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

        public Boolean 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