You are here

function fb_get_app in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_app()
  2. 6.3 fb.module \fb_get_app()
  3. 6.2 fb.module \fb_get_app()
  4. 7.4 fb.module \fb_get_app()
  5. 7.3 fb.module \fb_get_app()

Convenience method to get app info based on apikey or nid.

9 calls to fb_get_app()
action_fb_set_profile_fbml in ./fb_actions.module
Implementation of an Action. See Actions module.
action_fb_write_minifeed in ./fb_actions.module
Implementation of an Action. See Actions module.
fb_actions_cron_per_user in ./fb_actions.module
fb_actions_minifeed in ./fb_actions.module
fb_actions_profile_fbml in ./fb_actions.module

... See full list

File

./fb.module, line 298

Code

function fb_get_app($search_data) {

  // $search_data can be an apikey, or an array of other search params.
  if (!is_array($search_data)) {
    $search_data = array(
      'apikey' => $search_data,
    );
  }
  $fb_app = _fb_invoke(NULL, FB_OP_GET_APP, NULL, $search_data);
  return $fb_app;
}