function fb_app_event_cb in Drupal for Facebook 5.2
Same name and namespace in other branches
- 6.3 fb_app.module \fb_app_event_cb()
- 6.2 fb_app.module \fb_app_event_cb()
- 7.3 fb_app.module \fb_app_event_cb()
Callback for FB_APP_PATH_EVENT.
We don't act on the events directly. We pass the information along via hook_fb. Other modules are thus notified of the event and can take action.
1 string reference to 'fb_app_event_cb'
- fb_app_menu in ./
fb_app.module - hook_menu
File
- ./
fb_app.module, line 82 - Defines a custom node type that stores a facebook application configuration.
Code
function fb_app_event_cb($event_type) {
fb_invoke(FB_APP_OP_EVENT, array(
'event_type' => $event_type,
'fb_app' => $GLOBALS['fb_app'],
'fb' => $GLOBALS['fb'],
));
// This page is called by facebook, not a user's browser.
print 'Thanks Facebook, for your fancy API!';
// Problems if we save session during Facebook Connect, because the event callback's share session with normal pages.
session_save_session(FALSE);
exit;
}