【问题标题】:OpenGraph throwing error on valid og meta tagsOpenGraph 在有效的 og 元标记上抛出错误
【发布时间】:2013-04-17 19:04:17
【问题描述】:

我在我们的日志中收到此错误,这似乎表明我们已将 og 类型设置为“网站”。

Object error: Object code: 3502 message: "(#3502) Object at URL (see link below) has og:type of 'website'. The property 'movie' requires an object of og:type 'video.movie'. "type: "OAuthException"

以下是我们其中一款产品的元标记。如您所见,og类型仍然列为视频。

<meta content="217556128271512" property="fb:app_id">
<meta content="17 Again" property="og:title">
<meta content="video.movie" property="og:type">

根据the debugger for this product,og类型正确显示video.movi​​e:

知道这里发生了什么吗?好像今天才开始,因为我昨天可以发消息。

【问题讨论】:

  • 您的调试器链接显示 “必须修复的错误:循环重定向路径:检测到循环重定向路径(有关详细信息,请参阅“重定向路径”部分)。”

标签: facebook post facebook-javascript-sdk facebook-opengraph


【解决方案1】:

您可以尝试检查您的网络服务器日志是否同时发生错误。不正确的 html 可以根据 OpenGraph 请求返回给 Facebook,这可以被视为“网站”。

【讨论】:

    【解决方案2】:

    来自 fb 文档:

    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# video: http://ogp.me/ns/video#">
    <meta property="fb:app_id"      content="302184056577324" /> 
    <meta property="og:type"        content="video.movie" /> 
    <meta property="og:url"         content="Put your own URL to the object here" /> 
    <meta property="og:title"       content="Sample Movie" /> 
    <meta property="og:image"       content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" /> 
    <meta property="video:actor:id" content="Sample Actor: ID" /> 
    

    【讨论】:

      猜你喜欢
      • 2013-03-27
      • 1970-01-01
      • 2021-02-18
      • 1970-01-01
      • 2014-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多