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
@VANDAN29 - i try this but page not found error when i try to login
@VAN1310 - can you be more specific? what did you do?
@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');
}
@VAN1310 - Did you read the article from the first reply?
@SERGIU17 - yes i read this then i post my error please help me
which error come??
@VANDAN29 - page not found error when i click login button in linkedin button
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
@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...)
try with corephp
please also check linkedin developer forum
@DIPAKRATANIAGILE - you mean this code try in laravel but code is php ?
Had you checked your API token &its version also?
@DIPAKRATANIAGILE - i dont know how to check it plz suggest me
Hello dear @van1310
You can read the following 2 link and try to implement code steps by steps.
https://appdividend.com/2018/04/10/laravel-linkedin-login-tutorial/
https://itsolutionstuff.com/post/laravel-5-login-with-linkedin-using-socialite-packageexample.html
Hope it works for you.
@JAY_CHAUHAN - @jay_chauhan i try this two link then i post my error i will print error in above please help me out
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.