Laravel Socialite – get user details by token

I’am developing android application with facebook login and laravel REST API server. After user login on mobile, app get token which is sent to my server. On server I want get facebook user details by token.

Facebook SDK for PHP provides methods for that:

$session = FacebookSession('token');
$me = (new FacebookRequest($session, 'GET', '/me',))->execute()->getGraphObject(GraphUser::className());

Can Laravel Socialite obtain user facebook details based on that token? Or just use that Facebook SDK?

Source: laravel

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.