<?php $login = new CustomLoginButton(); $login->SetCommandText("Connect with Facebook"); $login->SetOnLoginJavaScript("alert('loggin succesfull');"); echo "Login button without CSS styles<br /><br />\n"; $login->Render(); echo "<br /><br /><br />Login button with CSS styles<br /><br />\n"; $login->SetCssClass("blue command_button"); $login->Render(); echo "<br /><br /><br />Login button as link without style<br /><br />\n"; $login->SetCommandType("link"); $login->SetCssClass(""); $login->Render(); echo "<br /><br /><br />Login button as image<br /><br />\n"; $login->SetImage("images/fblogin.png"); $login->Render(); ?> <br /> <br /> </div> </form> <br /> <?php include 'SessionCheck.php'; ?> <div style="width:605px"> <center> <br /> <a href="http://faceconn.com" id="tutorialbtn" runat="server" target="_black"><img src="images/tutorialbutton.png" alt="" /></a> <a href="http://faceconn.com/facebook-starter-kit-php" target="_black"><img src="images/starterkitsbutton.png" alt="" /></a>
} } // check if user if connected if (!$facebookUser) { echo '<div class="contentdiv" style="height:78px;" id="errorDiv" runat="server" visible="false">'; echo ' <center>'; echo ' Application is not yet authorized or connection with Facebook is not established. Press the login button.<br />'; echo ' <table>'; echo ' <tr>'; echo ' <td>'; echo ' <img id="animate_arrow" src="images/agt_forward.png" />'; echo ' </td>'; echo ' <td style="width:10px" />'; echo ' <td>'; $login = new CustomLoginButton(); $login->SetImage("images/fb-connect-large.png"); $login->SetOnLoginSubmitForm("form1"); $login->Render(); echo ' </td>'; echo ' <td style="width:75px" />'; echo ' </tr>'; echo ' </table>'; echo ' </center>'; echo '</div>'; } else { echo '<div class="contentdiv" style="height:65px" id="okDiv" runat="server" visible="false">'; echo ' <table>'; echo ' <tr>'; echo ' <td valign="top">'; echo ' <img src="images/apply.png" alt="" />'; echo ' </td>';