首页 > 解决方案 > 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);

标签: facebookfacebook-messengerfacebook-messenger-botmessengerfacebook-chatbot

解决方案


回答这个问题/问题...

原来是 Facebook 的错误,现在已修复!万岁


推荐阅读