使用启用时间轴的配置文件在 Facebook 上嵌入视频
我正在尝试使用 og:video 标签在视频网站上正确实现 Facebook 的开放图谱标签。
示例:http://12-infos.nrj12.fr/videos-3738/media/video/481196-mardi-6-decembre-mamie-est-une-lumiere.html
它工作得很好在“普通”帐户上(视频已正确共享,并且可以使用 ou SWF 播放器从 Facebook 读取,或使用 MP4 通过 iPhone 应用程序读取)。
当我使用启用时间轴的帐户时,单击图像/标题只会在页面上重定向我,而无需打开播放器?!
还需要做些什么才能使嵌入视频与时间轴帐户一起使用吗?
谢谢
I'm trying to correctly implement the Open Graph tags for Facebook on a video site, using the og:video tags.
Example : http://12-infos.nrj12.fr/videos-3738/media/video/481196-mardi-6-decembre-mamie-est-une-lumiere.html
It works perfectly on a "normal" account (the video is correctly shared, and can be read from Facebook with ou SWF player, or via iPhone apps with the MP4).
When I use a timeline-enabled account, a click on the image/title just redirects me on the page without opening the player ?!
Is there something more to do to make embed videos working with timeline accounts ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 Hamed Hashemi 所说,当从启用 https 的帐户查看时,您的播放器和视频必须有 https 链接。我上周遇到了这个问题,为了实现这个问题,我只需编辑链接以始终使用 https 协议。这样您就可以确保它们在 FB 页面内的 http 和 https 中可见。更正:您没有 og 元标记,那就是 og:video:secure_url。这是 https 网址。所以基本上你会有 2 个指向视频的 url:一个 http 和一个 https。比facebook会在什么时候显示哪一个。添加此网址并重试。
看看这里:http://ogp.me/#structed
As Hamed Hashemi said your player and video has to have a https links when viewed from https enabled accounts. I had this problem last week and to achieve this I just edit the links to always have https protocol. That way you'll be sure that they are visible from http and https from within the FB page.Correction: You don't have one og meta tag and that's og:video:secure_url. This is the https URL. So basically you'll have 2 urls leading to the video: one http and ope https. Than facebook will which one show when. Add this url and try it again.
Take a look here: http://ogp.me/#structured
确保您使用的是 https 版本的 facebook,swf 文件也通过 https 托管
make sure if you are on https version of facebook that the swf file is hosted via https as well