function fb_fql_query in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb.module \fb_fql_query()
Helper function for fql queries.
Use $params to pass a session_key, when needed.
14 calls to fb_fql_query()
- fb_devel_fql_query in ./
fb_devel.module - Wrapper for fb_fql_query(). Useful for debugging.
- fb_form_friend_options in ./
fb_form.module - fb_form_friend_selector_process in ./
fb_form.module - A selector allowing the user to choose from their friends. This must behave differently depending on whether the form is displayed on an FBML canvas page, iframe canvas page, or regular HTML page.
- fb_form_group_member_options in ./
fb_form.module - fb_form_multi_add_invite_form in ./
fb_form.module - Create a form allowing the user to invite friends to add the app.
File
- ./
fb.module, line 776 - This is the core required module of Drupal for Facebook.
Code
function fb_fql_query($fb, $query, $params = array()) {
try {
$params['query'] = $query;
//$result = fb_call_method($fb, 'fql.query', $params);
$params['method'] = 'fql.query';
$result = $fb
->api($params);
return $result;
} catch (Exception $e) {
fb_log_exception($e, t("FQL query failed. The query was \"%query\".", array(
'%query' => $query,
)));
}
}