function getfbRequests(){
try
{
$response = $this->api(/me/apprequests);
}
catch (JFBCFacebookApiException $e)
{
}
return $response;
} $token_url = 'https://graph.facebook.com/oauth/access_token?'
. 'client_id=' . $appId
. '&client_secret=' . $appSecret
. '&grant_type=client_credentials';
$access_token = file_get_contents($token_url);
//Get all app requests for user
$request_url ="https://graph.facebook.com/" .
$fbUserId . "/apprequests?".
$access_token;
$requests = file_get_contents($request_url);
$data = json_decode($requests);
foreach ($notificationModel->getRequestsToDelete() as $sig)
{
//echo "Deleting ".$sig."<br/>";
$this->jfbcLibrary->api('/'.$sig, null, false, 'DELETE');
}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
