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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With