如何在 FQL 中按类别过滤
正如您此处所见,
企业有其类别信息:本地企业、体育、教育......等。是“类别”字段。
我想知道,有没有办法使用 FQL 按类别和位置过滤企业?我还没找到怎么做。例如:给我这个圆内的所有运动中心(纬度、经度、半径)。
谢谢
As you can see here,
Businesses have their category information: Local Business, Sport, Education.. etc. It is the field "category".
I would like to know, is there a way to filter businesses by their category and position with FQL? I haven't found how to do it. For instance: give me all the sports center in this circle (lat, lon, radius).
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“页面”表中的“类别”属性称为“类型”。以下是过滤登录用户的“本地商家”喜欢的查询:
SELECT page_id, name, description, type, pic, fan_count
从页面
在哪里
page_id IN (SELECT page_id FROM page_fan WHERE uid = me())
AND Type = '本地企业'
运行示例
The "category" attribute in the "page" table is called "type". Here is a query to filter the logged-in user's "local business" likes:
SELECT page_id, name, description, type, pic, fan_count
FROM page
WHERE
page_id IN (SELECT page_id FROM page_fan WHERE uid = me())
AND Type = 'LOCAL BUSINESS'
Run Example
您无法按类别检索页面。
FQL Page 表有一个名为“类别”的字段。
您可以使用 FQL 检索企业的类别,如下所示:
其中 PAGE_ID 是页面的 Facebook ID。
但是,类别不是可索引字段。您不能询问纽约的所有花店业务,因为不允许“WHEREcategories = florist”。
You can't retrieve pages by category.
The FQL Page table has a field called categories.
You can retrieve the category for a business with FQL like this:
where PAGE_ID is the page's Facebook id.
However, categories is not an indexable field. You can't ask for all business in New York which are Florists since "WHERE categories = florist" isn't allowed.
我一直在寻找一些东西,但什么也没找到。看来只有图形 api 具有页面的类别信息。
I have been looking for something and haven't found anything. It appears that only the graph api has the category information for a page.