Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vandan's avatar
Level 13

login with linkedin using socialite

i try to login but cant login using linkedin

please help me out

try to various link in google but i cant excute.

please suggest some better solution

0 likes
19 replies
vandan's avatar
Level 13

@SERGIU17 - i try to login using linkedin socialte package and error like

Sorry, the page you are looking for could not be found.

my controller

public function redirect()
    {
        return Socialite::driver('linkedin')->redirect();
    }

public function handleProviderCallback()
    {

        $linkdinUser = Socialite::driver('linkedin')->user();
        $existUser = User::where('email',$linkdinUser->email)->first();

        if($existUser) {
            Auth::loginUsingId($existUser->id);
        }
        else {
            $user = new User;
            $user->name = $linkdinUser->name;
            $user->email = $linkdinUser->email;
            $user->linkedin_id = $linkdinUser->id;
            $user->password = md5(rand(1,10000));
            $user->save();
            Auth::loginUsingId($user->id);
        }
        return redirect()->to('dashboard');
    }
vandan's avatar
Level 13

@VANDAN29 - page not found error when i click login button in linkedin button

vandan's avatar
Level 13

when i try to login error

Laravel\Socialite\Two\AbstractProvider user …\app\Http\Controllers\Auth\LoginController.php73

Illuminate\Routing\Pipeline Illuminate\Routing{closure} …\app\Http\Middleware\RedirectIfAuthenticated.php36

Illuminate\Foundation\Http\Kernel handle …\public\index.php55

vandan's avatar
Level 13

@DIPAKRATANIAGILE - yes i try this but can't excute look like error in

GuzzleHttp \ Exception \ ClientException (410) Client error: GET https://api.linkedin.com/v1/people/~:(id,first-name,last-name,formatted-name,email-address,headline,location,industry,public-profile-url,picture-url,picture-urls::(original)) resulted in a 410 Gone response: { "errorCode": 0, "message": "This resource is no longer available under v1 APIs", "requestId": "EKBK7LJGCI", "s (truncated...)

generatoro's avatar

There exist a lot of picture generators on the web generatoro.com anyway few are favored dealt with or truly made over the Death Generator

Please or to participate in this conversation.