Im looking without any success away to execute fql query with the new Graph api does any body knows how can i do this?
found the Answer in this excellent example : http://code.google.com/p/facebook-cpp-graph-api/
Im looking without any success away to execute fql query with the new Graph api does any body knows how can i do this?
found the Answer in this excellent example : http://code.google.com/p/facebook-cpp-graph-api/
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );
Here's an example of how to do a FQL query using the Graph API and JavaScript
FB.api(
{
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid
},
function(data) {
// do something with the response
}
);
This assumes you've already setup your page according to the Facebook guidelines as shown here - http://developers.facebook.com/docs/reference/javascript/