Just in case you are not aware of, Facebook now supports executing FQL queries via Graph API.
In short, we can do this by issuing an HTTP GET request to https://graph.facebook.com/fql?q=QUERY where the ‘q’ parameter can be a single FQL query or a multi-query.
For details, you can refer to the developer bog at http://developers.facebook.com/blog/post/579/.