Facebook“OR”查询图API

时间:2010-09-07 00:45:55

标签: facebook search graph

在Facebook上搜索“OR”查询是徒劳的,因为“OR”被过滤了。

无法找到搜索“X或Y或Z”的方法

https://graph.facebook.com/search?q=cats%20OR%20Dogs&type=post

结果只找到包含猫和狗的帖子:

{
     "id": "100000895865837_129212313793038",
     "from": {
        "name": "Faxon LeCat",
        "id": "100000895865837"
     },
     "message": "Over and over again I see dogs or cats who are \"owner surrenders\" for one reason or another. When you get a pet - it's for life! They are not toys to be returned when you tire of them!",
     "type": "status",
     "created_time": "2010-09-06T22:48:33+0000",
     "updated_time": "2010-09-07T00:32:43+0000",
     "likes": 12
  }

https://graph.facebook.com/search?q=cats%20Dogs&type=post

结果:

 {
     "id": "100000573125293_144875485549138",
     "from": {
        "name": "Gianna Fedullo",
        "id": "100000573125293"
     },
     "message": "Dogs and cats are enimies, but yah know the dogs alwaaays winn(; FMS<3 .",
     "type": "status",
     "created_time": "2010-09-07T00:38:23+0000",
     "updated_time": "2010-09-07T00:38:23+0000"
  }

任何人都知道让它搜索“或”的魔术调用吗?

尝试过“'x'或'y'”,“x | y”,“x y”,“x,y”等....

3 个答案:

答案 0 :(得分:2)

确实使用OR不起作用。但是使用管道(|)会:

https://graph.facebook.com/search?q=cats%20|%20Dogs&type=post

干杯, 波阿斯

答案 1 :(得分:1)

似乎|不再工作了。我发布了一个关于Facebook Graph API search with OR statments的问题。

答案 2 :(得分:0)

你试过了吗? (双管)或资本“或”?