O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

600 Errors

Problem

My FQL doesn’t work! I’m getting a 600 error!

Solution

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 code

Description

601

Error while parsing the FQL statement.

602

The field you requested does not exist.

603

The table you requested does not exist.

604

Your statement is not indexable.

605

The function you called does not exist.

606

Wrong number of arguments passed into the function.

Discussion

Pay special attention to 604 errors, because they often have extra information in them about why the statement isn’t indexable. As an example, 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required