Klasse PostbackItem

java.lang.Object
com.restfb.types.webhook.messaging.PostbackItem
Alle implementierten Schnittstellen:
InnerMessagingItem

public class PostbackItem extends Object implements InnerMessagingItem
Represents a receiving postback object as defined here: https://developers.facebook.com/docs/messenger-platform/webhook-reference/postback
  • Konstruktordetails

  • Methodendetails

    • toString

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

      public String getMid()
      Message ID
    • setMid

      public void setMid(String mid)
      Message ID
    • getTitle

      public String getTitle()
      Title for the CTA that was clicked on. This is sent to all apps subscribed to the page. For apps other than the original CTA sender, the postback event will be delivered via the standby channel.
    • setTitle

      public void setTitle(String title)
      Title for the CTA that was clicked on. This is sent to all apps subscribed to the page. For apps other than the original CTA sender, the postback event will be delivered via the standby channel.
    • getPayload

      public String getPayload()
      payload parameter that was defined with the button
    • setPayload

      public void setPayload(String payload)
      payload parameter that was defined with the button
    • getReferral

      Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me link.
    • setReferral

      public void setReferral(PostbackReferral referral)
      Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me link.