我正在尝试使用文档中提供的代码为Facebook Messenger机器人设置欢迎消息 - 使用我自己的页面ID和页面访问令牌
curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"new_thread",
"call_to_actions":[{
"message":{
"text":"Hello! This is a Messenger bot!"
}
}]
}' "https://graph.facebook.com/v2.6/<PAGE_ID>/thread_settings?access_token=<PAGE_ACCESS_TOKEN>"
Run Code Online (Sandbox Code Playgroud)
这将返回以下内容:
{"error":{"message":"(#100) The parameter setting_type is required","type":"OAuthException","code":100,"fbtrace_id":"B0DKyn9O2KB"}}
Run Code Online (Sandbox Code Playgroud)
关于如何解决这个问题的任何想法?谢谢.