如何在 FB 的墙上嵌入 iframe 播放器?
How to embed a iframe player in FB's wall?
我一直在尝试使用 OG 标签在 FB 上嵌入一个 iframe 播放器,但没有成功。但是我发现 Kaltura 玩家可以。我一直在尝试复制他们所做的,但没能成功。
Here and here Kaltura 解释了如何在 FB 中嵌入他们的播放器。基本上他们说你应该放置以下标签:
<!-- Facebook iframe embed -->
<meta property="og:video:url" content="https://cdnapisec.kaltura.com/p/243342/sp/24334200/embedIframeJs/uiconf_id/28685261/partner_id/243342?iframeembed=true&playerId=kaltura_player&entry_id=1_sf5ovm7u">
<meta property="og:video:secure_url" content="https://cdnapisec.kaltura.com/p/243342/sp/24334200/embedIframeJs/uiconf_id/28685261/partner_id/243342?iframeembed=true&playerId=kaltura_player&entry_id=1_sf5ovm7u&">
<meta property="og:video:type" content="text/html">
<meta property="og:video:width" content="560">
<meta property="og:video:height" content="395">
当然,我尝试了那个和许多其他的东西,比如应对 Kaltura Http headers。但它没有用,任何线索为什么它对他们有用?我错过了什么?
注意:这是重复的 question,但我想添加我发现的这个 Kaltura 异常。
只需关注this example。
编辑
刚注意到你试过了。如果您正确包含标签,它应该并且确实有效。
您使用的是 Kaltura.com 还是您自己的托管服务?
Facebook 以及 twitter、embed.ly 和其他嵌入目的地需要嵌入提供商 URL 的白名单。因此,如果您自行托管 Kaltura 服务器,请注意,您还需要联系这些服务(例如 facebook)才能列入白名单。
我一直在尝试使用 OG 标签在 FB 上嵌入一个 iframe 播放器,但没有成功。但是我发现 Kaltura 玩家可以。我一直在尝试复制他们所做的,但没能成功。
Here and here Kaltura 解释了如何在 FB 中嵌入他们的播放器。基本上他们说你应该放置以下标签:
<!-- Facebook iframe embed -->
<meta property="og:video:url" content="https://cdnapisec.kaltura.com/p/243342/sp/24334200/embedIframeJs/uiconf_id/28685261/partner_id/243342?iframeembed=true&playerId=kaltura_player&entry_id=1_sf5ovm7u">
<meta property="og:video:secure_url" content="https://cdnapisec.kaltura.com/p/243342/sp/24334200/embedIframeJs/uiconf_id/28685261/partner_id/243342?iframeembed=true&playerId=kaltura_player&entry_id=1_sf5ovm7u&">
<meta property="og:video:type" content="text/html">
<meta property="og:video:width" content="560">
<meta property="og:video:height" content="395">
当然,我尝试了那个和许多其他的东西,比如应对 Kaltura Http headers。但它没有用,任何线索为什么它对他们有用?我错过了什么?
注意:这是重复的 question,但我想添加我发现的这个 Kaltura 异常。
只需关注this example。
编辑
刚注意到你试过了。如果您正确包含标签,它应该并且确实有效。
您使用的是 Kaltura.com 还是您自己的托管服务? Facebook 以及 twitter、embed.ly 和其他嵌入目的地需要嵌入提供商 URL 的白名单。因此,如果您自行托管 Kaltura 服务器,请注意,您还需要联系这些服务(例如 facebook)才能列入白名单。