|
|
Facebook Login Button
CustomLoginButton is used for the same purpose as LoginButton. Only difference
is that its appearance is not predefined, but it can be defined with CSS. Login Button
class is used to connect a web site to the Facebook and to allow it to use the Facebook API.
The example bellow demonstrates login button without style, with defined CSS, as a link, and as an image.
For all details about the control, with descriptions of all optional properties, please visit
Facebook Login Button Tutorial.
Login button without CSS styles
Login button with CSS styles
Login button as link without style
Connect with Facebook
Login button as image

$login = new CustomLoginButton();
$login->SetCommandText("Connect with Facebook");
$login->SetOnLoginJavaScript("alert('loggin succesfull');");
$login->Render();
$login->SetCssClass("blue");
$login->Render();
$login->SetCommandType("link");
$login->SetCssClass("");
$login->Render();
$login->SetImage("images/fblogin.png");
$login->Render();
|