【问题标题】:Facebook Tab - Vimeo iframe video stopped workingFacebook 选项卡 - Vimeo iframe 视频停止工作
【发布时间】:2013-10-25 03:08:13
【问题描述】:

我在 Facebook 中制作了一个应用程序,其中包含一些简单的 html,包括一个包含 vimeo 视频的 iframe。这个应用程序在过去一年左右运行良好,但突然间视频没有出现。我已经仔细检查了页面的代码(制作了一个独立的 html 页面,它工作正常)

有人知道 Facebook 是否改变了他们对 iframe 或嵌入式视频的政策吗?如果有,有什么建议吗?

这是应用程序的链接(在 Facebook 上):https://www.facebook.com/LastFrontierHeli/app_367384316627957

这是应用程序的代码:

    <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<style type="text/css">
  <!--
  .container {
    height: 810px;
    width: 841px;
  }
  -->
  </style>
</head>

  <body>
<div class="container">
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_header.jpg" alt="header" />
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_vid_left.jpg" alt="vid left" />
<iframe src="http://player.vimeo.com/video/30746400?byline=0&amp;portrait=0" width="658" height="370" frameborder="0"></iframe>
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_vid_right.jpg" alt="vid right" />
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_content.jpg" alt="content" /><a href="http://www.lastfrontierheli.com" target="_blank">
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_button_website.jpg" alt="website button" border="0" /></a>
<a href="http://www.facebook.com/LastFrontierHeli" target="_parent">
<img src="http://www.lastfrontierheli.com/images/facebook/facebook_welcome_button_facebook.jpg" alt="facebook button" border="0" /></a>
</div>
</body>

任何帮助将不胜感激!

【问题讨论】:

    标签: html facebook iframe video vimeo


    【解决方案1】:

    为了找出问题所在,我刚刚使用了 Chrome 开发者工具, 在控制台下你可以看到这一行:

    [已阻止]https://367384316627957.iframehost.com/966373?signed_request=incxTmuyY3_vzi...NlciI6eyJjb3VudHJ5IjoiaWwiLCJsb2NhbGUIiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19 处的页面 http://player.vimeo.com/video/30746400?byline=0&portrait=0运行不安全的内容。

    所以如果你不知道 - facebook 要求所有数据都被加密(通过 SSL 提供)。

    只需将您的 iframe 从 http://player.vimeo.. 更改为 http*s*://player.vimeo 它应该可以正常工作。

    【讨论】:

    • 你的冠军!非常感谢您的帮助!
    猜你喜欢
    • 2016-06-29
    • 1970-01-01
    • 1970-01-01
    • 2012-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-14
    • 1970-01-01
    相关资源
    最近更新 更多