vanillaforums/Garden — Issue #1248: Avoid Facebook asking for Username for the very first time
Author: Csabbencs
Created: 2011-11-24 21:50:29+00:00
State: open

When someone tries to login to the forum for the very first time by 'Login with Facebook' , Facebook ask his/her name.
By adding the line below (or something similar) Facebook will register the new user in the forum with the same name he/she has at Facebook.
```
if (!isset($NameFound) && !$IsPostBack) {
if(!$this->Form->GetFormValue('Name')) $this->Form->SetFormValue('Name', $this->Form->GetFormValue('FullName')); // add this line!!!
$this->Form->SetFormValue('ConnectName', $this->Form->GetFormValue('Name'));
}
```
Adding a new option to Facebook plugins settings would be even better, so that the forum admin has the option to decide whether he/she wants all the users to give the ability of having different or same name as they have at Facebook.