My FQL doesn’t work! I’m getting a 600 error!
Don’t panic! 600-class errors are Facebook’s way of telling you that there’s something wrong with your FQL query. The possible error codes are listed in Table 8-19.
Table 8-19. FQL error codes
Error while parsing the FQL statement.
The field you requested does not exist.
The table you requested does not exist.
Your statement is not indexable.
The function you called does not exist.
Wrong number of arguments passed into the function.
Pay special attention to 604 errors, because they often have
extra information in them about why the statement isn’t indexable. As
metrics table queries
are considered indexable only if the date range you’re querying on
isn’t bigger than 30 days. If it is bigger, you’ll get a 604 error,
which tells you that the range is too big.
If you’re getting an error and are having trouble tracking it down in the context of your code, try extracting the query and running it directly inside the API Test Console at http://developers.facebook.com/tools.php?api. If you select “fql.query” as the Method, you can play with FQL and see live results on the righthand side.