小编kit*_*sai的帖子

"'og:type'属性是必需的,但不存在." 错误

我遇到了Facebook的图形API问题.我得到一个"'og:type'属性是必需的,但不存在." 此网址上的错误:http://thatnewjoint.com/posts/logic-driving-ms-daisy-feat-childish-gambino(以及我博客上的所有其他网址).

og:type元标记在HTML中,所以我不确定为什么Facebook没有识别它.这是他们的图表api调用返回的内容:

{
   "id": "561280430667026",
   "created_time": "2014-08-28T20:35:18+0000",
   "is_scraped": false,
   "type": "website",
   "updated_time": "2014-08-28T20:35:18+0000",
   "url": "http://thatnewjoint.com/posts/eminem-superman-throwback-thursdays"
}
Run Code Online (Sandbox Code Playgroud)

好像当我使用他们的api(通过考拉红宝石宝石)发布时,链接不会被刮掉?我会假设og:type错误导致了这一点,但这里是该页面的元标记:

<meta property="og:url" content="http://thatnewjoint.com/posts/eminem-superman-throwback-thursdays" />
<meta property="og:title" content="Eminem - &quot;Superman&quot; [Throwback Thursdays] | ThatNewJoint | Premier Hip Hop Blog" />
<meta property="og:description" content="Classic from The Eminem Show. I&#39;ll be honest - the video is very strange, but the song is great."
<meta property="og:type" content="video">
<meta property="og:image" content="http://i3.ytimg.com/vi/8kYkciD9VjU/hqdefault.jpg" />
<meta property="og:video" content="http://www.youtube.com/v/8kYkciD9VjU?version=3&amp;autohide=1">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="1920">
<meta property="og:video:height" …
Run Code Online (Sandbox Code Playgroud)

ruby facebook fb-graph

12
推荐指数
1
解决办法
3万
查看次数

标签 统计

facebook ×1

fb-graph ×1

ruby ×1