Class PostbackItem
- java.lang.Object
-
- com.restfb.types.webhook.messaging.PostbackItem
-
- All Implemented Interfaces:
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
-
-
Constructor Summary
Constructors Constructor Description PostbackItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMid()
Message IDString
getPayload()
payload parameter that was defined with the buttonPostbackReferral
getReferral()
Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me link.String
getTitle()
Title for the CTA that was clicked on.void
setMid(String mid)
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
setTitle(String title)
Title for the CTA that was clicked on.String
toString()
-
-
-
Constructor Detail
-
PostbackItem
public PostbackItem()
-
-
Method Detail
-
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
public PostbackReferral 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.
-
-