You are here

function fb_fql_query in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 fb.module \fb_fql_query()

Helper function for fql queries.

Use $params to pass a session_key, when needed.

11 calls to fb_fql_query()
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.
fb_friend_block in contrib/fb_friend.module
Implementation of hook_block().

... See full list

File

./fb.module, line 681
This is the core required module of Drupal for Facebook.

Code

function fb_fql_query($fb, $query, $params = array()) {
  $params['query'] = $query;

  //$result = fb_call_method($fb, 'fql.query', $params);
  $params['method'] = 'fql.query';
  $result = $fb
    ->api($params);
  return $result;
}