Facebook Open graph Meta 标签错误

发布于 2024-12-05 23:48:57 字数 828 浏览 0 评论 0原文

我对新的 Facebook 元标签有疑问,对象类型是歌曲。

我从这里举了例子。 这里

<meta property="og:type" content="Song" />
<meta property="og:title" content="artist name - track name" />
<meta property="og:description" content="content" />
<meta property="og:image" content="artist image full url" />
<meta property="testappwebsite:song:url" content="the full track uri PAGE." />
<meta property="testappwebsite:song:type" content="audio/mp3" />
<meta property="fb:app_id" content="my app id" />

这是我遇到的错误。 facebook debug

奇怪的是,当我获取网址并将其放入我的状态中时。我得到了正确的图像,但没有得到添加到元标记的标题,而是得到了文档标题。

是否有歌曲音频的内置对象?因为我找不到它。

i'm having an issue with the new facebook meta tags the type of object is a song.

i took the example from here.
here

<meta property="og:type" content="Song" />
<meta property="og:title" content="artist name - track name" />
<meta property="og:description" content="content" />
<meta property="og:image" content="artist image full url" />
<meta property="testappwebsite:song:url" content="the full track uri PAGE." />
<meta property="testappwebsite:song:type" content="audio/mp3" />
<meta property="fb:app_id" content="my app id" />

this is the errors i'm getting.
facebook debug

the wierd thing is that when i take the url and put it in my status. i'm getting the correct image, but i'm not getting the title that i added to the meta tag, instead i'm getting the document title.

is there any built in objects for song audio ?? because i cannot find it.

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

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

发布评论

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

评论(2

椵侞 2024-12-12 23:48:57

在您的示例中,歌曲是大写的 - 不确定这是否有任何关系。请参阅此处:

音频下的 http://ogp.me/...

<html xmlns:og="http://ogp.me/ns#">
<head>
...
[REQUIRED TAGS]
<meta property="og:audio" content="http://example.com/amazing.mp3" />
<meta property="og:audio:title" content="Amazing Song" />
<meta property="og:audio:artist" content="Amazing Band" />
<meta property="og:audio:album" content="Amazing Album" />
<meta property="og:audio:type" content="application/mp3" />
...
</head>

Song is uppercase in your example - not sure if that has any bearing. See here:

http://ogp.me/ under Audio...

<html xmlns:og="http://ogp.me/ns#">
<head>
...
[REQUIRED TAGS]
<meta property="og:audio" content="http://example.com/amazing.mp3" />
<meta property="og:audio:title" content="Amazing Song" />
<meta property="og:audio:artist" content="Amazing Band" />
<meta property="og:audio:album" content="Amazing Album" />
<meta property="og:audio:type" content="application/mp3" />
...
</head>
梦明 2024-12-12 23:48:57

您是否将 标记放入 中?只有 被实际解析。

Did you put the <meta> tags into your <head>? Only the <head> is actually parsed.

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