0

我在 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>

任何帮助将不胜感激!

4

1 回答 1

0

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

[blocked] The page at https://367384316627957.iframehost.com/966373?signed_request=incxTmuyY3_vzi …NlciI6eyJjb3VudHJ5IjoiaWwiLCJsb2NhbGUiOiJlbl9VUyIsImFnZSI6eyJtaW4iOjIxfX19 ran insecure content from http://player.vimeo.com/video/30746400?byline=0&portrait=0 .

因此,如果您不知道 - facebook 要求对所有数据进行加密(通过 SSL 提供)。

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

于 2013-10-25T09:02:08.350 回答