I'm looking without any success for a way to execute a FQL(facebook query language) query with the new Open Graph API.
Does anyone know how I can do this?
Found the answer here with this excellent example: http://code.google.com/p/facebook-cpp-graph-api/
FQL with PHP here I show how to use FQL. It is very simple if you take a careful look at the current facebook api documentation. Sometimes it is better to not read articles about facebook api issues and look straight at the documentation.
Here's an example of how to do a FQL query using the Graph API and JavaScript
This assumes you've already setup your page according to the Facebook guidelines as shown here - http://developers.facebook.com/docs/reference/javascript/
PHP Solution:
Using the Javascript SDK, you can accomplish this using the following:
No legacy REST API required. I see a lot of confusion on this and Facebook hasn't made it very clear.
This is another way to execute multiple fql queries in short span.
//$current_user=facebook id
$objs gets json array of whole result of thre queries.
And it is saving time a lot. This 3 queries individually takes total 9 seconds. With multiquery it takes 7 seconds. And with batch request it takes 3.6 seconds.