facebook graph api 搜索规则 [英] facebook graph api search rules

查看:30
本文介绍了facebook graph api 搜索规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道 facebook 图形 api 上可接受的布尔逻辑是什么?他们拥有开发人员世界所知的最糟糕的文档、论坛和帮助.我尝试使用 OR,但它似乎不起作用.AND 似乎用空格或逗号暗示.我正在尝试搜索多个术语或使用 OR 和 NOT.

Does anyone have any idea what boolean logic is acceptable on the facebook graph api? They have the worst documentation, forums, assistance known to the developer world. I tried using OR and it does not seem to be working. AND seems to be implied with spaces or commas.I am trying to search for multiple terms or using OR and NOT.

推荐答案

您可以在搜索帖子时执行 AND 和 OR,例如:http://graph.facebook.com/search?q=西瓜%20|%20banana&type=post

You can do AND and OR, when searching for posts, like: http://graph.facebook.com/search?q=watermelon%20|%20banana&type=post

可以与空格或 + 一起使用的 AND 运算符:http://graph.facebook.com/search?q=watermelon%20banana&type=post

The AND operator you can use with space or +: http://graph.facebook.com/search?q=watermelon%20banana&type=post

您也可以使用"来搜索诸如李小龙"之类的字词:搜索?q="李小龙"&type=post

You can search for terms like "bruce lee" too, using "": search?q="bruce lee"&type=post

恢复:"| " = OR" " 和 "+" = AND

Resuming: " | " = OR " " and "+" = AND

我没有找到使用 NOT 运算符的方法

I did not find a way to use the NOT operator

我同意,这是有史以来最糟糕的 API 文档.

And I agree, it is the worst API documentation ever.

这篇关于facebook graph api 搜索规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆