function fb_get_app in Drupal for Facebook 7.3
Same name and namespace in other branches
- 5.2 fb.module \fb_get_app()
- 5 fb.module \fb_get_app()
- 6.3 fb.module \fb_get_app()
- 6.2 fb.module \fb_get_app()
- 7.4 fb.module \fb_get_app()
Convenience method to get app info based on id or nid.
15 calls to fb_get_app()
- fb_admin_set_properties_form_submit in ./
fb.admin.inc - Confirm form submit function. We don't use fb_app_set_app_properties, because fb_app.module may not be enabled.
- fb_ajax_event in ./
fb.module - Ajax callback handles an event from facebook's javascript sdk.
- fb_app_event_cb in ./
fb_app.module - Callback for FB_APP_PATH_EVENT.
- fb_app_fb in ./
fb_app.module - Implements hook_fb().
- fb_canvas_fb in ./
fb_canvas.module - Implements hook_fb().
File
- ./
fb.module, line 1174 - This is the core required module of Drupal for Facebook.
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(
'id' => $search_data,
);
}
$fb_app = fb_invoke(FB_OP_GET_APP, $search_data);
return $fb_app;
}