get wrong ogtype in object debugger

帅比萌擦擦* 提交于 2019-12-01 06:33:50

问题


my tested page is here. http://smartphone.mn/news/2110 . I'm using facebook object debugger, Debugger return og:type = website and 4 Inferred property warning (og:url,or:img, og:description, og:image).

How can fix this. Why object type return wrong?


回答1:


You using OpenGraph meta-tags in a wrong manner. This is a code you have in page:

<meta name="fb:app_id" content="..." />
<meta name="og:type" content="article" />
...

But the fact is you MUST use property named property instead of name to specify the name of the OpenGraph data...

So to solve this you just need to replace name to property for OpenGraph meta-tags:

<meta property="fb:app_id" content="..." />
<meta property="og:type" content="article" />
...


来源:https://stackoverflow.com/questions/9953779/get-wrong-ogtype-in-object-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!