It isn’t possible to do it by JavaScript or PHP? If Socialite have the data from this user, like his token, it should be possible to logout from Facebook as well, no?
Yes it's possible!!! One way is to get the logout url from facebook. You can use for example php-graph-sdk to do that (I already tested and works well with php and javascript).
The problem is that i'm not able to get the token using Socialite, when i use Socialite::driver('facebook')->user() it only works when is inside the callback function, but I need to get the token in another funcion, in this case the logout function...
And the token stored by Socialite differes from the token created by the facebook when the user logon.
How can I do that?