ok

Mini Shell

Direktori : /home2/selectio/www/limpiar.in.net/app/Services/Revoke/
Upload File :
Current File : //home2/selectio/www/limpiar.in.net/app/Services/Revoke/FacebookRevoke.php

<?php

namespace App\Services\Revoke;

use GuzzleHttp\Client;

class FacebookRevoke implements ProviderRevoke
{

    public function apply()
    {
        $token = auth()->user()->access_token;
        $http = new Client();
        $response = $http->delete("https://graph.facebook.com/v3.0/".auth()->user()->provider_id."/permissions?access_token={$token}");
        return $response->getStatusCode();
    }
}

Zerion Mini Shell 1.0