//Delete Request After Processing
$apptoken_url = "https://graph.facebook.com/oauth/access_token?" .
"client_id=" . $appId .
"&client_secret=" . $appSecret .
"&grant_type=client_credentials";
$access_token = file_get_contents($apptoken_url); // access token of the app
$delete_url = "https://graph.facebook.com/".$reqId."_".$fbUserId."?".$access_token."&method=delete";
$result = file_get_contents($delete_url); //Delete the request from FB
JFBCFactory::provider('facebook')->api('/123456_2393939', null, false, 'DELETE'); $delete_id = $reqId.'_'.$fbUserId;
$delsuccess = JFBCFactory::provider('facebook')->api('/'.$delete_id.'', null, false, 'DELETE');
dump($delsuccess);
$delete_id = $reqId.'_'.$fbUserId;
$delsuccess = JFBCFactory::provider('facebook')->api('/'.$delete_id, null, false, 'DELETE');
dump($delsuccess);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
