public function entryController_signIn_handler($Sender, $Args) { if (!$this->socialSignIn()) { return; } if (isset($Sender->Data['Methods'])) { $Url = $this->authorizeUri(); // Add the facebook method to the controller. $FbMethod = array('Name' => self::ProviderKey, 'SignInHtml' => socialSigninButton('Facebook', $Url, 'button')); $Sender->Data['Methods'][] = $FbMethod; } }