-
- <script type="text/javascript" src="http://cdn.gigya.com/JS/socialize.js?apikey=xxxxxxxxxxxxxxxxx">
- {
- connectWithoutLoginBehavior: 'alwaysLogin' // change the connect without login behavior
- }
- </script>
- <script type="text/javascript">
- function FBLogin() {
- var params = {
- provider: 'facebook',
- callback: 'onLogin',
- redirectURL: 'http://localhost:12345:/abc/handle/login.ashx'
- };
- gigya.socialize.login(params);
- };
-
- function onLogin(response) {
- // verify the signature ...
- }
- </script>
我改变成
- <script type="text/javascript">
- function FBLogin() {
- var params = {
- provider: 'facebook',
- callback: 'onLogin',
- redirectURL: 'http://localhost:12345:/abc/handle/login.ashx'
- };
- gigya.socialize.login(params);
- };
-
- function onLogin(response) {
- // verify the signature ...
- }
- </script>
- <body>
- <a href="" onclick="FBLogin()"><img src="../images/facebook_login_button.png" /></a>



