html - Facebook 嵌入提要中的视频未显示在 Chrome 应用程序中

标签 html google-chrome facebook-javascript-sdk google-chrome-app google-chrome-webview

编辑:实际上是这个问题:如果用户未登录,则不支持嵌入提要中的 native 视频。(因此在 webview chrome 应用程序中,它未登录)错误报告给 Facebook 此处:https://developers.facebook.com/bugs/353742028342246/ 和也许这是“设计使然”


老问题:

我想在 Chrome 应用程序中显示 Facebook 页面提要,它运行良好,但原生视频不可见。

要重现,请使用 hello world 应用程序:https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/hello-world

在manifest.json中添加permissions:["webview"]

<h1>Hello, World!</h1> 之后添加:

<webview src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fyoutube%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></webview>

(使用此页面:https://developers.facebook.com/docs/plugins/page-plugin 并将“iframe”替换为“webview”)

Chrome -> 加载解压的扩展 -> 你会看到 feed 但没有原生视频:

enter image description here

如果您使用浏览器打开 index.html(并使用 <iframe>),它将显示视频...

enter image description here

如果我使用 <webview src="https://www.mydomain.fr/company"> ,其中包含正确的 <iframe> ,同样的问题:除 native 视频外都有效。

PS : Youtube 视频正在运行,您可以尝试使用 Youtube 页面:

<webview src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fyoutube%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></webview>

enter image description here

最佳答案

我向 Facebook 报告了这个错误,也许它是“设计使然”

https://developers.facebook.com/bugs/353742028342246/

虽然等待“团队”的回应。

关于html - Facebook 嵌入提要中的视频未显示在 Chrome 应用程序中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41404991/

相关文章:

html - 准确安装定制子弹

facebook - 允许多个 Firebase 帐户使用相同的电子邮件地址是否安全?

javascript - Firefox和Chrome用户关闭 “Physical Location”提示如何处理?

html - 覆盖跨度样式

javascript - 带有 <br> 换行文本的 DIV

javascript - Uncaught Error : [$injector:modulerr] Failed to instantiate module due to:

php - 分享照片时 Facebook 不显示缩略图

javascript - 预渲染 HTTPS 可选站点

facebook-javascript-sdk - 如何正确地将 Facebook JavaScript SDK 注入(inject) AngularJS Controller ?

javascript - Facebook Javascript SDK 中的好友列表总数