function fb_invite_request_detail in Drupal for Facebook 7.4
File
- contrib/
fb_invite.module, line 45 - Adds the ability to invite facebook friends to use the local Facebook Application.
Code
function fb_invite_request_detail() {
if (!empty($_REQUEST['request_ids'])) {
$requests = explode(',', $_REQUEST['request_ids']);
$token = fb_user_token();
if (!$token) {
$app = fb_get_app();
if (!empty($app['data']) && !empty($app['data']['access_token'])) {
$token = $app['data']['access_token'];
}
}
if ($token) {
try {
$graph = fb_graph_batch($requests, $token);
return $graph;
} catch (Exception $e) {
fb_log_exception($e, t('Failed to get request detail for %requests.', array(
'%requests' => $_REQUEST['request_ids'],
)));
}
}
}
}