Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

I used mostly plain JavaScript, but you can put it easily into a wrapper for your convenience.

Code Block
html
html
titleFacebookSignInPanel.htmlhtml
<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>

...