如何在 FQL 中按类别过滤

发布于 2024-10-18 12:48:24 字数 215 浏览 4 评论 0原文

正如您此处所见,

企业有其类别信息:本地企业、体育、教育......等。是“类别”字段。

我想知道,有没有办法使用 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 技术交流群。

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

发布评论

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

评论(3

木緿 2024-10-25 12:48:24

“页面”表中的“类别”属性称为“类型”。以下是过滤登录用户的“本地商家”喜欢的查询:

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

国产ˉ祖宗 2024-10-25 12:48:24

您无法按类别检索页面。

FQL Page 表有一个名为“类别”的字段。

您可以使用 FQL 检索企业的类别,如下所示:

SELECT categories FROM page WHERE page_id = PAGE_ID

其中 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:

SELECT categories FROM page WHERE page_id = PAGE_ID

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.

妞丶爷亲个 2024-10-25 12:48:24

我一直在寻找一些东西,但什么也没找到。看来只有图形 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.

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