Facebook 图形 API 和 FQL 不匹配

发布于 2024-12-01 17:19:10 字数 788 浏览 0 评论 0原文

可能的重复:
Graph api 和等效的 FQL 方法给出不同的结果?

我想查询 Facebook 上按时间和地点过滤的活动。

根据图 API,事件有一个名为场地的字段,它是一个具有纬度和经度的对象

http://developers.facebook.com/docs/reference/api/event/< /a>

然而,根据 facebook 查询语言,事件表有一个名为场地的字段,它是一个字符串

http://developers.facebook.com/docs/reference/fql/event/< /a>

似乎没有场地表的场地字符串可以作为外键。

我如何获得 FQL 坐标附近的场地列表?

Possible Duplicate:
Graph api and equivalent FQL method give different results?

I'd like to query an event on facebook filtered by time and location.

According to the graph api, an event has a field called venue, which is an object that has latitude and longitude.

http://developers.facebook.com/docs/reference/api/event/

However, according to the facebook query language, the event table has a field called venue, which is a string.

http://developers.facebook.com/docs/reference/fql/event/

There doesn't seem to be a venue table of which the venue string could be a foreign key.

How could I get a list of venues near a coordinate with FQL?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那些过往 2024-12-08 17:19:10

这是文档中的一个错误;感谢您指出!文档已更新,以反映“venue”实际上包含 Graph API 返回的场地对象中的字段的事实。

您可以使用 Graph API 的 /search 端点搜索位置。例如,您可以使用以下查询搜索与“咖啡”相关的地点 https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&access_token=... 请参阅< 搜索部分 href="https://developers.facebook.com/docs/reference/api/" rel="nofollow">Graph API 文档了解更多信息。

This is a bug in the documentation; thanks for pointing it out! Documentation has been updated to reflect the fact that 'venue' actually contains the fields in the venue object that's returned by the Graph API.

You can search for locations using the Graph API's /search endpoint. For example, you can search for a place related to "coffee" with the following query https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&access_token=... See the Searching section in the Graph API documentation for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文