Advanced FQL

What we've covered so far is enough to cover most of what you can do with Graph calls, and some more besides. Let's take a look at the more advanced features of FQL.

Operators

Just like if statements in AS3, FQL's WHERE clause can take both logical and comparison operators.

Comparison

We can use the mathematical comparison operators =, <, >, <=, >=, and !=. (An alternative to != is <>, which you may see in examples online.)

These all work the same as in AS3, with the exception of =, which is like AS3's ==; it's used for checking equality rather than assigning a value.

The most useful scenario for using these is when you want to filter out objects past a certain age.

Logical

AND, OR, and NOT will be familiar to you, although in AS3 we would ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.