将 Flash 音乐播放器设置为 opengraph 标签

发布于 2024-12-24 21:31:24 字数 1254 浏览 0 评论 0 原文

我有一个 Flash 音乐播放器 http://www.etiennechampollion.com/lecteur/compositions.htm< /a> 带有 Facebook 点赞按钮。

我设置了 OpenGraph 元标记以指定 Flash 的 url object :

<meta property="og:video:type" content="application/x-shockwave-
flash" />
<meta property="og:video" content="http://www.etiennechampollion.com/
lecteur/dewplayer-
playlist.swf&showtime=true&autostart=true&autoreplay=true&xml=http://
www.etiennechampollion.com/lecteur/compositions.xml">

如果你尝试直接玩 http://www.etiennechampollion.com/lecteur/dewplayer-playlist.swf?showtime=true&autostart=true&autoreplay=true&xml=http://www.etiennechampollion.com/lecteur/组成.xml 在你的浏览器中,它可以工作。

但是,如果一个用户点击“喜欢”按钮以便在他的 墙,播放器将显示,但带有“XML 错误”,这让我知道 它找不到composes.xml 文件。

在 facebook 中,如果我查看页面的源代码,我发现 facebook 使用相对路径:“compositions.xml”。

所以问题是:我怎样才能让 Facebook 获得 通过 OpenGraph 播放器和播放列表?

感谢您的帮助。

阿尔诺

I have a flash music player at http://www.etiennechampollion.com/lecteur/compositions.htm
with a Facebook like button.

I've set OpenGraph meta tags in order to specify the url of the flash
object :

<meta property="og:video:type" content="application/x-shockwave-
flash" />
<meta property="og:video" content="http://www.etiennechampollion.com/
lecteur/dewplayer-
playlist.swf&showtime=true&autostart=true&autoreplay=true&xml=http://
www.etiennechampollion.com/lecteur/compositions.xml">

If you try to play directly
http://www.etiennechampollion.com/lecteur/dewplayer-playlist.swf?showtime=true&autostart=true&autoreplay=true&xml=http://www.etiennechampollion.com/lecteur/compositions.xml
in your browser, it works.

But, if one user clicks on the like button in order to share it on his
wall, the player will show, but with "XML error", which let me know
that it doesn't find the compositions.xml file.

In facebook, if I look at the source code of the page, I find that
facebook use a relative path : "compositions.xml".

So the question is : how could I do to allow Facebook to get the
player and the playlist via OpenGraph ?

Thank you for your help.

Arnaud

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热鲨 2024-12-31 21:31:24

您可以使用 facebook 调试器来修复页面上的错误: http://developers.facebook.com/tools/调试

You can use facebook debugger to fix the errors on the page: http://developers.facebook.com/tools/debug

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文