To add social media login functionality to Laravel 5.8, one library come over and over again, it’s socialite.
https://github.com/laravel/socialite
SSH into your server and run the following command in the directory where your Laravel is installed:
composer require laravel/socialite
As composer is locked after install. I needed to reinstall completely. On my host, the installation needs to be global for it to work (or at least, a local install did not do the trick). So I ran
composer global remove laravel/installer
composer global require laravel/installer laravel/socialite
cd Path/to/my/directory
laravel new ProjectName --auth
without global, laravel was an unknown command.
Official documentation can be found on the Laravel website:
https://laravel.com/docs/6.x/socialite
Additional resources:
https://medium.com/@confidenceiyke/laravel-5-8-facebook-socialite-authentication-8863b9a43f11
https://getcomposer.org/doc/01-basic-usage.md