SammyK / LaravelFacebookSdk

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
MIT License
693 stars 201 forks source link

User Login From Redirect Example: can't store empty password value #215

Closed rzelnik closed 5 years ago

rzelnik commented 5 years ago

I am trying to implement the example code with default Laravel's "artisan make:auth" user management. This line:

$user = \App\User::createOrUpdateGraphNode($facebook_user);

... returns me an error message:

SQLSTATE[HY000]: General error: 1364 Field 'password' doesn't have a default value (SQL: insert into users (id, name, email, updated_at, created_at) values...

rzelnik commented 5 years ago

Update: solution found in the documentation: https://github.com/SammyK/LaravelFacebookSdk#getting-a-queryexception-when-saving-a-user I am closing this issue.