-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linkedin Oauth fails of user is missing a profile picture #328
Comments
Confirmed that it works with a linkedin account that has an avatar pic. |
I'm experiencing a similar problem, but in my case even this code doesn't work: I'm getting the error: And it happens there:
socialite/src/Two/AbstractProvider.php, user function, line 216 |
@Crypton33 probably the same error. And it can't have happened on that line because there's no array_filter call there. It's probably happening inside the |
Released 4.0.2 with a bugfix for this. Can you try again? |
Works fine now, thanks 👍 |
When a person hasn't got an image set for their account its images won't be returned as an array. We'll now default to an empty array. Fixes laravel/socialite#328
Using
"laravel/socialite": "^4.0"
I get a "array_filter() expects parameter 1 to be array, null given" when it tries to run mapUserToObject() in socialite/src/Two/LinkedInProvider.php.
My test account is missing an avatar image.
var_dump of the $user object passed to it.
The text was updated successfully, but these errors were encountered: