对于HTTPS用户,共享的Facebook视频不会内联显示在墙上的帖子中 [英] Shared Facebook video is not displayed inline in wall posts for HTTPS users
问题描述
我有一个带有喜欢"按钮的应用程序.单击赞"后,包含视频链接的帖子就会转到我的Facebook墙上. 如果我关闭了Facebook安全性(所有FB页面都通过不安全的http打开),我可以播放嵌入到我的facebook墙上的视频.但是,一旦单击安全,我的视频缩略图就会打开一个新标签,而不是嵌入式播放器.
无论facebook安全如何,如何使视频以相同的方式播放.
看起来有可能:YouTube页面包含与OGraph选项卡基本相同的内容,但是无论FB安全设置如何,它们的播放器始终会打开并嵌入我的墙.
您可能需要指定视频的HTTPS来源,请参见此处: https://developers.facebook.com/blog/post/602/ >
和文档: https://developers.facebook.com/docs/opengraph/#audiovideo >
如何指定安全URL的示例是:
<meta property="og:video:secure_url" content="https://secure.example.com/awesome.swf"/>
我认为youtube是一种特殊情况,其他所有人都需要手动指定HTTPS URL,以便向HTTPS用户内联显示内容
I have an application with a Like button. Once I click Like, a post, including a video link, goes to my facebook wall. If I turn off facebook security (all FB pages are opened through insecure http), i can play video embedded into my facebook wall. But once security is on clicking my video thumbnail opens a new tab instead of embedded player.
How can I make video play the same way regardless facebook security.
Looks like it's possible: YouTube pages have essentially the same OGraph tabs included, but their player always opens embedded into my wall regardless FB security settings.
You may need to specify the HTTPS source of your video, see here: https://developers.facebook.com/blog/post/602/
and the docs: https://developers.facebook.com/docs/opengraph/#audiovideo
An example of how to specify the secure URL is:
<meta property="og:video:secure_url" content="https://secure.example.com/awesome.swf"/>
I think youtube is a special case and everyone else needs to manually specify the HTTPS URL in order for the content to be displayed inline for HTTPS users
这篇关于对于HTTPS用户,共享的Facebook视频不会内联显示在墙上的帖子中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!