Versions Compared

Key

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

...

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

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

...

I hope this is useful for you,
Markus

Updates:

  • 2010/6/10:
    Code Block
    
    * Added createPanel() to the constructor.
    * Added common Bug API Error 100