claudia-bot-builder
claudia-bot-builder copied to clipboard
Location Quick Reply is now deprecated
Claudia.js /
In this example, return new fbTemplate.Text('Test Quick Replay ?').addQuickReplyLocation() .get()
;
When the request is made, we get an error back.
"dependencies": { "claudia": "^5.12.0", "claudia-bot-builder": "^4.0.0", },
{
ERROR: {
headers: {
'access-control-allow-origin': '*',
'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}',
'x-fb-rlafr': '1',
'x-fb-request-id': 'A2kE_skUtmtha4Rrsms2ECq',
'strict-transport-security': 'max-age=15552000; preload',
'x-fb-trace-id': 'G6iqbHQ7E74',
'facebook-api-version': 'v9.0',
'content-type': 'text/javascript; charset=UTF-8',
'x-fb-rev': '1003180565',
'cache-control': 'no-store',
pragma: 'no-cache',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100) Location Quick Reply is now deprecated on API 4.0. Please refer to our Developer Documentation for more info."',
'x-fb-debug': 'DtYL8sFygV1NHVp1nSnpbwzY89rlaQ4OVwRASISn2i500o37nRHjnIgFCnokA8t2LtHeJs0v8uZuTZVmjpxK0w==',
date: 'Wed, 13 Jan 2021 22:23:36 GMT',
'alt-svc': 'h3-29=":443"; ma=3600,h3-27=":443"; ma=3600',
connection: 'close',
'content-length': '238'
},
body: '{"error":{"message":"(#100) Location Quick Reply is now deprecated on API 4.0. Please refer to our Developer Documentation for more info.","type":"OAuthException","code":100,"error_subcode":2018286,"fbtrace_id":"A2kE_skUtmtha4Rrsms2ECq"}}',
statusCode: 400,
statusMessage: 'Bad Request'
}}