function fb_stream_get_stream_dialog_data in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 fb_stream.module \fb_stream_get_stream_dialog_data()
- 7.3 fb_stream.module \fb_stream_get_stream_dialog_data()
Get the data for one or more stream dialogs. Use this function in ajax callbacks, where you want to publish dialog(s) in response to javascript events.
1 call to fb_stream_get_stream_dialog_data()
- fb_stream_fb in ./
fb_stream.module - Implementation of hook_fb().
File
- ./
fb_stream.module, line 398 - Support for Facebook's Stream API.
Code
function fb_stream_get_stream_dialog_data($fb_app = NULL) {
if (!$fb_app) {
$fb_app = $GLOBALS['_fb_app'];
}
if (isset($_SESSION[FB_STREAM_DIALOGS]) && isset($_SESSION[FB_STREAM_DIALOGS][$fb_app->apikey])) {
$data = $_SESSION[FB_STREAM_DIALOGS][$fb_app->apikey];
unset($_SESSION[FB_STREAM_DIALOGS][$fb_app->apikey]);
return $data;
}
else {
return array();
}
}