THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
I used mostly plain JavaScript, but you can put it easily into a wrapper for your convenience.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<html xmlns:wicket> <body> <wicket:head> <script type="text/javascript" wicket:id="loginCallback"></script> <script type="text/javascript" wicket:id="logoutCallback"></script> </wicket:head> <wicket:panel> <fb:login-button autologoutlink="true" perms="email" > </fb:login-button> <!-- Facebook-API --> <div id="fb-root"> </div> <script wicket:id="FBapi"> <!-- calling Facebook API, init and check login --> </script> </wicket:panel> </body> </html> |
...