最近我注意到我传递给通用模板(即“卡片”)的facebook视频链接正在将用户重定向到facebook的“watch”部分。
- 我肯定知道这不是代码的问题,但它必须是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错误,现在已修复!万岁