[javascript]聯外通應用..part2

摘要:[javascript]聯外通應用..part2

 

誰說沒高手就打不出來2

 

講解:這頁梅蝦米好講解!!就單存丟入一個FB按鈕然後讓他去登入

登入之後可以導回他應該有的頁面,上一個看得懂!!這個一訂看得懂

 

 

程式碼B

......................................................................................................................

 

<html>

<head>

</head>

<body>

<div id="fb-root">

</div>

  <script src="http://connect.facebook.net/en_US/all.js">

   </script>

<script>

 FB.init({ 

            appId:'', cookie:true, 

            status:true, xfbml:true 

         });

		 FB.getLoginStatus(function(response) {

           if (response.session) {

           // logged in and connected user, someone you know

		  location.replace("http://bobtest.rojo.tw/conn/ccc.html");

            } else {

              // no user session available, someone you dont know

			   alert('nnnnnnnnn');

                }

            });

 

</script>

<script src="http://connect.facebook.net/en_US/all.js#appId=176143179103937&amp;xfbml=1">

</script>

<fb:login-button>不要按</fb:login-button>

</body>

</html>