1

下面的meta标签会在下面产生linter警告。我在一两个博客上看过Facebook不再使用这些标签,但考虑到他们的界面,我很难相信它。有没有人看到任何问题?Facebook打开图标记错误(geopoint)

<meta property="og:latitude" content="27.41076"> 
    <meta property="og:longitude" content="-82.65850"> 
    <meta property="og:street-address" content="5441 Gulf of Mexico Drive"> 
    <meta property="og:locality" content="Longboat Key"> 
    <meta property="og:region" content="FL"> 
    <meta property="og:postal-code" content="34228"> 
    <meta property="og:country-name" content="USA"> 
    <meta property="og:locale" content="en_us" /> 

enter image description here


Open Graph的警告,应该是固定的

外来地产:这种类型的对象不允许命名属性 'OG:纬度'。

无关属性:此类型的对象不允许名为'og:longitude'的属性。

无关属性:此类型的对象不允许名为'og:street-address'的属性。

无关属性:此类型的对象不允许名为'og:locality'的属性。

无关属性:此类型的对象不允许名为'og:region'的属性。

无关属性:此类型的对象不允许名为'og:postal-code'的属性。

无关属性:此类型的对象不允许名为'og:country-name'的属性。

回答

2

元标签应以您的名称空间开头,例如

<meta property="place:location:latitude" content="45.50251415561716" /> 
<meta property="place:location:longitude" content="-73.5713430027785" /> 
<meta property="place:location:altitude" content="42" /> 

多见于https://developers.facebook.com/docs/opengraph/complextypes/#geopoint

http://philippeharewood.com/facebook/geopoint.html

警告看到它在行动:目前还与调试器中的错误:http://developers.facebook.com/bugs/432088663509632

+0

槽糕。我应该在管理控制台中添加这些属性吗?现在,这个帖子已经成功完成了,但是没有迹象表明lat/long被用于任何事情(我希望生成的地图)。 – Matrym 2012-07-31 03:00:18

+0

@Matrym我会展示它的外观,但目前的错误是搞砸 – phwd 2012-07-31 15:44:21

+0

任何机会,你可以截图管理控制台视图? – Matrym 2012-07-31 18:06:16