我一直在互联网上寻找答案:
我正在尝试使用 og:video 标签在 Facebook 中嵌入视频,但尽管 facebook linter 不断显示“状态:Facebook 上的视频嵌入已启用”,当它显示在我的提要中时,单击它总是会打开一个新窗口,而不是在视频播放器中显示它。它确实显示了一个小播放图标,但它的作用就像一个链接而不是视频。
我已经用一个 swf url 尝试过,当我点击它时,它就可以工作,我已经用 mp4 视频尝试过,我已经尝试过 https、http 等。我的 og 标签与我在 < 中看到的这个示例非常相似a href="http://ahrengot.com/playground/circular-scrubbing/" rel="nofollow">http://ahrengot.com/playground/circular-scrubbing/ (有一个很好的教程http://ahrengot.com/tutorials/custom-video-player-on-脸书/)。
我是否需要将其与应用程序关联(已经尝试过,并且仅在 fb:admins 中使用我的用户 ID),如果是这样,我需要设置什么样的设置才能使其显示在视频播放器中?我需要设置画布网址吗?
我正在使用流播放器。
感谢您的任何帮助。
编辑:尝试了 8 小时后,它似乎自发地开始工作。 Facebook 在允许嵌入之前是否会对目标进行某种测试/缓存?
I've been in, around, and through a good chunk of the internets looking for an answer to this:
I'm trying to embed a video in Facebook using the og:video tag, but despite the fact that the facebook linter keeps showing 'status: Video embedding on Facebook enabled', when it shows up in my feed, clicking on it always opens a new window instead of showing it in the video player. It does show a little play icon, but it acts like a link rather than a video.
I've tried it with an swf url that works when i hit it, i've tried it with an mp4 video, I've tried https, http, etc. My og tags are pretty much exactly like this example I see at http://ahrengot.com/playground/circular-scrubbing/ (theres a good tutorial at http://ahrengot.com/tutorials/custom-video-player-on-facebook/).
Do I need to associate it with an app (have tried that and just using my user id in fb:admins), and if so, what kind of settings do I need to set to make it show up in a video player? Do I need to set up a canvas url?
I'm using flowplayer.
Thanks for any help.
Edit: it seemed to spontaneously start working after trying for 8 hrs. Does facebook do some kind of testing/caching of the target before it allows the embed?
发布评论
评论(2)
是的,我不确定多久一次..但是要更新特定 URL 的 facebook 缓存,请通过调试器(以前的 URL linter)运行它 @ http://developers.facebook.com/tools/debug
yes, I'm not sure on how often..but to update facebook's cache of a specific URL, run it through the debugger (formerly URL linter) @ http://developers.facebook.com/tools/debug
也可能与 SSL 相关。如果您在 FB 上启用了安全浏览,它将在新窗口中启动您的视频。您使用 og:video 嵌入的视频链接使用“http”而不是“https”。
Might also be SSL related. If you have secure browsing enabled on FB it will launch your video in a new window. The link of the video you are embedding with og:video is using "http" and not "https".