facebook - Facebook Messenger Bot 通用模板重定向到“观看”部分
问题描述
最近我注意到,我通过通用模板(又名“卡片”)传递的 facebook 视频链接正在将用户重定向到 facebook 的“观看”部分。
-我确定这不是代码问题,但它一定是 facebook 端的问题?!
有人遇到这种情况吗?
为了满足“需要看一些代码”的要求:
我正在使用BootBot,这是我的具体实现:
const showLatestVideos = (payload, chat) => {
chat.say({
cards: [
{ title: '', image_url: 'https://scontent.fprn1-1.fna.fbcdn.net/v/t15.13418-10/p370x247/52063931_808166469575942_2311605833122709504_n.jpg?_nc_cat=106&_nc_ht=scontent.fprn1-1.fna&oh=fa00211a8bdf83959a23bac5971a19f8&oe=5CEE1050', default_action: {
type: "web_url",
url: "https://web.facebook.com/SwedenViral/videos/795477234150322/",
webview_height_ratio: "tall"
},
buttons:[
{
type:"web_url",
url:"https://web.facebook.com/SwedenViral/videos/795477234150322/",
title:"Tagga någon",
webview_height_ratio: "tall"
}
]
},
{ title: '', image_url: 'https://scontent.fprn1-1.fna.fbcdn.net/v/t15.13418-10/p370x247/52171349_1186996514800023_9059384507546730496_n.jpg?_nc_cat=1&_nc_ht=scontent.fprn1-1.fna&oh=b9ca303276cbbeb131d5c659b2812e54&oe=5CE89DDB', default_action: {
type: "web_url",
url: "https://web.facebook.com/SwedenViral/videos/241869170093762/",
webview_height_ratio: "tall"
},
buttons:[
{
type:"web_url",
url:"https://web.facebook.com/SwedenViral/videos/241869170093762/",
title:"Berätta",
webview_height_ratio: "tall"
}
]
},
{ title: 'The most interesting and satisfying video you\'ll ever watch...', image_url: 'https://scontent.fprx1-1.fna.fbcdn.net/v/t15.5256-10/48349980_984643338399874_7749589283798777856_n.jpg?_nc_cat=102&_nc_ht=scontent.fprx1-1.fna&oh=d4b8f45f9115d561f66e519ec3cad053&oe=5D1DA1BB', default_action: {
type: "web_url",
url: "https://web.facebook.com/SwedenViral/videos/1021393401391534/",
webview_height_ratio: "tall"
},
buttons:[
{
type:"web_url",
url:"https://web.facebook.com/SwedenViral/videos/1021393401391534/",
title:"Kommentar",
webview_height_ratio: "tall"
}
]
},
{ title: 'Hur jag lämnande jobbet idga...', image_url: 'https://scontent.fprn1-1.fna.fbcdn.net/v/t15.13418-10/p235x350/52142869_152469279005397_1516129000290779136_n.jpg?_nc_cat=1&_nc_ht=scontent.fprn1-1.fna&oh=0aed9824d288ce94f4ed426421c2d910&oe=5D282FFA', default_action: {
type: "web_url",
url: "https://web.facebook.com/SwedenViral/videos/816827101985067/",
webview_height_ratio: "tall"
},
buttons:[
{
type:"web_url",
url:"https://web.facebook.com/SwedenViral/videos/816827101985067/",
title:"Tagga någon",
webview_height_ratio: "tall"
}
]
}
]
});
};
这就是上述内容/消息的发送方式:
bot.hear(['latest', 'videos', 'rate', 'senaste', 'videon'], showLatestVideos);
解决方案
回答这个问题/问题...
原来是 Facebook 的错误,现在已修复!万岁
推荐阅读
- json - 使用 MongoDB 错误 com.mongodb.util.JSONParseException(uPDATED) 在 SpringBoot 中自定义 @Query
- google-chrome-extension - 如何“制作一个简单的密码自动填充 Chrome 扩展程序”?
- database - 无论数据类型如何,检查给定数据是否为非空?
- php - 在要邮寄的表单上显示随机生成的字符
- c# - 使用 iTextSharp 向 PDF 添加数字签名 - 智能卡证书(PIN 保护)
- amazon-web-services - 是否可以将数据从 AWS Lambda 传递到 Docker 映像中的 java 程序?
- pandas - 将复合列拆分成我可以旋转的东西
- powershell - 使用 ConvertToDateTme 变量创建 CSV
- kiba-etl - 使用 kiba ETL 检查 CSV 文件标头的最佳位置
- javascript - 总是得到“(0,_reactDom.h)不是函数”或“h未定义”