Laravel Socialite for API - Stateless


Example

public function facebook() {
    return $this->socialite->driver('facebook')->stateless()->redirect()->getTargetUrl();
}

This will return the URL that the consumer of the API must provide to the end user to get authorization from Facebook.