如何设置“开始使用”按钮在facebook messenger bot和何时发送欢迎信息 [英] how to setup "Get started" button in facebook messenger bot and when to send welcome message

查看:359
本文介绍了如何设置“开始使用”按钮在facebook messenger bot和何时发送欢迎信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

入门



尝试向此网址发送请求



https://graph.facebook.com/v2.6/PAGE_ID/thread_settings?access_token=PAGE_ACCESS_TOKEN



但是没有'

解决方案

如下所示对API JSON体进行POST调用。

  curl -X POST -HContent-Type:application / json-d'{
setting_type:call_to_actions,
thread_state :new_thread,
call_to_actions:[
{
payload:USER_DEFINED_PAYLOAD
}
]
}'https: //贴图 : Facebook m essenger开始按钮



Postman screentshot


"Get Started"

tried sending request to this url

https://graph.facebook.com/v2.6/PAGE_ID/thread_settings?access_token=PAGE_ACCESS_TOKEN

But didn't work.

解决方案

Make a POST call to API JSON body as below.

curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"new_thread",
"call_to_actions":[
 {
  "payload":"USER_DEFINED_PAYLOAD"
 }
]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"

Ref: Facebook messenger get started button

Postman screentshot

这篇关于如何设置“开始使用”按钮在facebook messenger bot和何时发送欢迎信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆