Package com.bytedesk.social.instagram
Class InstagramButtonTemplateExample
java.lang.Object
com.bytedesk.social.instagram.InstagramButtonTemplateExample
Instagram按钮模板使用示例
Button Template Usage Examples for Instagram Messaging
展示如何使用按钮模板服务发送各种类型的按钮消息
https://developers.facebook.com/docs/messenger-platform/instagram/features/button-template
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
示例5: 发送自定义按钮模板 使用自定义按钮列表void
示例9: 活动推广场景void
示例3: 发送混合按钮模板 (URL按钮 + 回传按钮) 提供多种选择给用户void
示例2: 发送回传按钮模板 用于收集用户选择或触发特定操作void
示例8: 电商场景 - 产品推荐void
示例10: 问卷调查场景void
示例4: 发送三按钮模板 提供最多三个选项void
示例1: 发送URL按钮模板 用于引导用户访问网站或产品页面void
示例7: 客服场景 - 欢迎消息void
示例6: 验证按钮模板参数
-
Field Details
-
instagramButtonTemplateService
-
-
Constructor Details
-
InstagramButtonTemplateExample
public InstagramButtonTemplateExample()
-
-
Method Details
-
sendUrlButtonExample
public void sendUrlButtonExample()示例1: 发送URL按钮模板 用于引导用户访问网站或产品页面 -
sendPostbackButtonExample
public void sendPostbackButtonExample()示例2: 发送回传按钮模板 用于收集用户选择或触发特定操作 -
sendMixedButtonExample
public void sendMixedButtonExample()示例3: 发送混合按钮模板 (URL按钮 + 回传按钮) 提供多种选择给用户 -
sendThreeButtonExample
public void sendThreeButtonExample()示例4: 发送三按钮模板 提供最多三个选项 -
sendCustomButtonExample
public void sendCustomButtonExample()示例5: 发送自定义按钮模板 使用自定义按钮列表 -
validateButtonTemplateExample
public void validateButtonTemplateExample()示例6: 验证按钮模板参数 -
sendWelcomeMessageExample
public void sendWelcomeMessageExample()示例7: 客服场景 - 欢迎消息 -
sendProductRecommendationExample
public void sendProductRecommendationExample()示例8: 电商场景 - 产品推荐 -
sendEventPromotionExample
public void sendEventPromotionExample()示例9: 活动推广场景 -
sendSurveyExample
public void sendSurveyExample()示例10: 问卷调查场景
-