function fbconnect_fql_query in Facebook Connect 6.2
Make FQL Query. Uses fql.multiquery if $query is array of queries
1 call to fbconnect_fql_query()
- fbconnect_get_info_from_fb in ./
fbconnect.module - Query information from facebook user table.
File
- ./
fbconnect.module, line 665 - Integration with Facebook Connect API.
Code
function fbconnect_fql_query($query) {
if (fbconnect_facebook_client() && $query) {
if (is_array($query)) {
$params = array(
'method' => 'fql.multiquery',
'queries' => $query,
);
}
else {
$params = array(
'method' => 'fql.query',
'query' => $query,
);
}
try {
try {
return fbconnect_facebook_client()
->api($params);
} catch (FacebookApiException $e) {
drupal_set_message($e
->getMessage(), 'error');
throw $e;
}
} catch (Exception $e) {
$msg = 'Exception thrown while using fbconnect_fql_query : @code';
watchdog('fbconnect', $msg, array(
'@code' => $e
->getMessage(),
), WATCHDOG_WARNING);
}
}
}