I am trying to add LinkedIn auth on my laravel app using socialite package. But I'm getting the following error:
Client error: `GET https://api.linkedin.com/v2/me?projection=%28id%2CfirstName%2ClastName%2CprofilePicture%28displayImage~%3AplayableStreams%29%2CvanityName%29` resulted in a `403 Forbidden` response: {"serviceErrorCode":100,"message":"Not enough permissions to access: GET /me","status":403}
I got the access of the Share on LinkedIn and Sign In with LinkedIn using OpenID Connect products.
I have created the access token for it.
That error indicates that the LinkedIn API is rejecting the request because the user's access token doesn't have the required permissions to access the requested endpoint. Sometimes the user might have restricted access to their profile information. You can check the LinkedIn account settings allow third-party applications to access the required data.
You can also check that your Laravel Socialite configuration specifies the correct LinkedIn scopes during the authentication process. In your config/services.php file under the linkedin configuration make sure you have included the necessary scopes.