Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sync Facebook Profile Picture to User's avatar
Event::listen('oneauth.logged', function ($client, $user_data)
if ($client->user_id > 0)
// get user information using eloquent.
$user = User::find($client->user_id);
$user->avatar = $user_data['info']['image'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment