You are here

function fb_get_groups_data in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_groups_data()
  2. 5 fb.module \fb_get_groups_data()
  3. 6.2 fb.module \fb_get_groups_data()
  4. 7.3 fb.module \fb_get_groups_data()
2 calls to fb_get_groups_data()
fb_form_group_options in ./fb_form.module
fb_get_groups in ./fb.module

File

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

Code

function fb_get_groups_data($fbu, $fb_app = NULL) {
  static $cache = array();
  $fb = _fb_api_init($fb_app);
  if (!$fb || !$fbu) {
    return;
  }
  if (!isset($cache[$fbu])) {
    $cache[$fbu] = fb_call_method($fb, 'groups.get', array(
      'uid' => $fbu,
    ));
  }
  return $cache[$fbu];
}