Class PostbackItem
java.lang.Object
com.restfb.types.webhook.messaging.PostbackItem
- All Implemented Interfaces:
InnerMessagingItem
Represents a receiving postback object as defined here:
https://developers.facebook.com/docs/messenger-platform/webhook-reference/postback
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMid()
Message IDpayload parameter that was defined with the buttonComes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me link.getTitle()
Title for the CTA that was clicked on.void
Message IDvoid
setPayload
(String payload) payload parameter that was defined with the buttonvoid
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.void
Title for the CTA that was clicked on.toString()
-
Constructor Details
-
PostbackItem
public PostbackItem()
-
-
Method Details
-
toString
-
getMid
Message ID -
setMid
Message ID -
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
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
payload parameter that was defined with the button -
setPayload
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
Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me link.
-