我正在尝试将签到发布到 Facebook 上不可用的地方。我为示例地点创建了示例网页并添加了打开的图形元数据,但 Facebook 无法正确识别我的“og:type”;它总是将我的页面作为“og:type”“网站”进行爬网,这会将我的与地点相关的元数据(例如纬度、经度、城市)标记为无关属性,因此,我的页面 ID 会作为检查的错误 ID -在。
我的问题是:如何让我的网页在“符合 Facebook 的”开放图形元数据中“代表”一个位置?如何使网页成为有效的签到地点?
这是我正在使用的 og 元数据:
<html version="XHTML+RDFa 1.1" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="pt" lang="pt" dir="ltr">
<head>
<title>A Bateira</title>
<meta content="http://farm5.static.flickr.com/4152/5095614606_f6620d7b54.jpg" property="og:image" />
<meta content="40.643696" property="og:latitude" />
<meta property="og:type" content="cafe" />
<meta content="-8.655696" property="og:longitude" />
<meta property="og:street-address" content="Cais dos Botiroes" />
<meta property="og:locality" content="Aveiro" />
<meta property="og:region" content="Aveiro" />
<meta property="og:postal-code" content="3810" />
</head>
最好的问候,P。