簡體   English   中英

Facebook Messenger Bot通用模板重定向到“監視”部分

[英]Facebook Messenger Bot Generic Template redirects to 'Watch' section

最近,我注意到我通過通用模板(也稱為“卡片”)傳遞的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錯誤,現已修復! 萬歲

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM