function fb_get_app in Drupal for Facebook 6.2
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()
- 7.4 fb.module \fb_get_app()
- 7.3 fb.module \fb_get_app()
Convenience method to get app info based on apikey or nid.
10 calls to fb_get_app()
- fb_actions_cron_per_user in contrib/
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_app_fb in ./
fb_app.module - Implementation of hook_fb().
- fb_canvas_fb in ./
fb_canvas.module - Implementation of hook_fb().
- fb_connect_block in ./
fb_connect.module - Implementation of hook_block.
- fb_connect_fb in ./
fb_connect.module - Implementation of hook_fb().
File
- ./
fb.module, line 457
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;
}