You are here

function fb_get_app in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 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.

18 calls to fb_get_app()
fb_actions_cron_per_user in ./fb_actions.module
Trigger an action several times, emulating a different user each time. Useful for cron jobs in which we update each users profile box, for example.
fb_actions_profile_fbml in ./fb_actions.module
fb_actions_ref_fbml in ./fb_actions.module
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb.
fb_connect_block in ./fb_connect.module
Implementation of hook_block.

... See full list

File

./fb.module, line 371

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(FB_OP_GET_APP, $search_data);
  return $fb_app;
}