Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook graph api search rules

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.

like image 333
vbNewbie Avatar asked Jan 12 '11 22:01

vbNewbie


People also ask

What 3 terms does Facebook use to describe what the graph API is composed of?

The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields.

Is Facebook Graph API deprecated?

API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.

Does Facebook use graph API?

The Graph API is the primary way for apps to read and write to the Facebook social graph. All of our SDKs and products interact with the Graph API in some way, and our other APIs are extensions of the Graph API, so understanding how the Graph API works is crucial.

Is Facebook Graph API restful?

If you ever wanted to query Facebook user information, publish content, and update information, the Graph API is the way to go. It can be accessed from practically any browser because it is a restful JSON API.


1 Answers

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

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

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

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

I did not find a way to use the NOT operator

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

like image 105
Luiz Felipe Mendes Avatar answered Sep 30 '22 20:09

Luiz Felipe Mendes