【问题标题】:Does facebook graph search api support logical query?facebook 图形搜索 api 是否支持逻辑查询?
【发布时间】:2013-08-14 10:26:10
【问题描述】:

有人对 Facebook Graph 搜索 API 中的逻辑查询有任何想法吗?

问题:

我正在尝试使用以下 URL 获取所有公开帖子:

"https://graph.facebook.com/search?q="+testKeywords+"&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&type=post"

testKeywords = (Mahindra AND (Auto OR Navistar OR HCV OR LCV OR Passenger OR Renault))

我想搜索包含单词“Mahindra”和任何“OR”单词组合的公开帖子。

例如

1) 在 Mahindra 在线申请汽车贷款/汽车贷款 - (关键字:Mahindra 和汽车)

2) Mahindra Renault Logan 在印度的价格 - 69.5 万卢比。 (关键词:马恒达和雷诺)

我尝试使用以下方法,但没有成功:

https://graph.facebook.com/search?q=Mahindra+Auto|Navistar|HCV|LCV|passenger|Renault&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&type=post

有谁知道是否仍然可以使用 Facebook Graph 搜索 API 执行此类查询?

感谢您的帮助。

【问题讨论】:

  • AND/OR 不支持search API
  • Shadowfax,您知道 Facebook Graph 搜索 API 的 AND/OR 查询的其他替代方法吗?
  • 我认为没有
  • 好的,感谢Shadowfax 的努力。

标签: facebook facebook-graph-api


【解决方案1】:

我知道这已经很晚了,但是您可以在搜索中使用 AND 运算符,可以通过使用您提到的“+”运算符并将“&q=”字段多次作为您可以输入的关键字来完成。我还没有找到一种使 OR 工作的方法。

【讨论】:

    猜你喜欢
    • 2011-08-14
    • 1970-01-01
    • 2015-01-08
    • 1970-01-01
    • 1970-01-01
    • 2016-02-27
    • 2017-04-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多