You user needs to accept the permission for using the user_birthday permission. Remove the connection between your facebook account and your app in your apps view and login again, you will need to accept the permissions again, but it should now state that the birthday permission is required as well
Aug 24, 2015
6
Level 2
Socialite Facebook extra fields
Hello, I try to get extra fields from Facebook (Birthday in this case) with Socialite.
I found a method called fields() in FacebookProvider.php that should overwrite the default $fields array :
protected $fields = ['first_name', 'last_name', 'email', 'gender', 'verified'];
/**
* Set the user fields to request from Facebook.
*
* @param array $fields
* @return $this
*/
public function fields(array $fields)
{
$this->fields = $fields;
return $this;
}
This method seems to be called but the user() method still gives me old data ('first_name', 'last_name', 'email', 'gender' and 'verified').
return Socialite::driver('facebook')->fields([
'first_name', 'last_name', 'email', 'gender', 'birthday'
])->scopes([
'email', 'user_birthday'
])->redirect();
Any help ?
(Last version of Laravel : 5.1 and last version of Socialite : v2.0.11)
Please or to participate in this conversation.