6

我使用FB 页面 linter来验证我使用的所有元信息是否正确。根据图表 url,我的页面 id 是 157797447612809,但是当我尝试向该页面发布签入时,我收到错误:

(#100) Requires a valid Place Page ID

令人惊讶的是,没有关于将签到发布到 Internet 上任何地方可用的开放图形页面的好信息。我已经使用了我能想象到的所有可能的地方页面 ID 变体,从 URL 到不同页面的页面 ID,但我总是遇到同样的错误。有没有人有一个应该如何完成的例子?谢谢!

4

4 回答 4

3

由于 Facebook 绝对没有关于这件事的文档,我通过查看foursquare 所做的事情以及大量的试验和错误来解决这个问题。

在 facebook 中定义打开的图形对象时,您必须添加GeoPoint类型的属性。我打电话给我的位置。在对象页面元中定义如下:

  <meta property="mytestapp:location:latitude" content="37.791" />
  <meta property="mytestapp:location:longitude" content="-122.395" />

现在,当您调试/检查此对象时,它会注册为一个地方,就像foursquare HQ一样。您可以签入并为包含此对象的操作创建地图视图。

于 2012-07-03T17:56:18.403 回答
1

我认为您至少需要添加与位置相关的标签,例如 og:longitude 和 og:latitude。

对于具有这些 og 标记和签入的页面,请参阅此图输出。

http://graph.facebook.com/149998791679075

http://foursquare.com/venue/128530

顺便说一句:我希望你能理解这个例子的讽刺 8)

我也不确定您是否可以签入 og:type=food 页面。它可能必须是地点类型之一,例如地标 - 请参阅 OpenGraph 页面上的类型信息。但是,上面的示例适用于 og:type=company,因此您需要测试不同的类型才能看到。

于 2011-04-03T03:35:03.237 回答
0

I have spent too many hours on this but it doesn't seem possible. Then I came accross with this answer. I think this feature is currently open only to Foursquare. Facebook API docs doesn't have anything related to this.

于 2012-12-21T22:57:57.443 回答
0

Geopoint 对象在此处描述:

https://developers.dev.facebook.com/docs/opengraph/complextypes/#geopoint

例子:

<meta property="your-og-app:location:latitude"  content="37.416382"> 
<meta property="your-og-app:location:longitude" content="-122.152659"> 
<meta property="your-og-app:location:altitude"  content="42">
于 2012-08-15T01:34:35.380 回答