【问题标题】:Facebook Open graph Meta tags errorsFacebook 打开图元标记错误
【发布时间】:2011-09-23 17:34:03
【问题描述】:

我对新的 facebook 元标签有问题,对象的类型是一首歌。

我从这里举了一个例子。 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" />

这是我遇到的错误。

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

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

【问题讨论】:

    标签: facebook facebook-opengraph


    【解决方案1】:

    在您的示例中,歌曲是大写的 - 不确定这是否有任何影响。见这里:

    音频下的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>
    

    【讨论】:

      【解决方案2】:

      您是否将&lt;meta&gt; 标签放入您的&lt;head&gt; 中?实际上只解析了&lt;head&gt;

      【讨论】:

      • 您能发布一个指向实际页面的链接吗?从您的帖子来看,一切看起来都很正确。
      猜你喜欢
      • 2015-03-02
      • 1970-01-01
      • 2012-04-27
      • 2015-03-01
      • 2011-09-19
      • 2015-07-16
      • 2016-05-30
      • 2013-12-11
      • 1970-01-01
      相关资源
      最近更新 更多