2012-08-01 122 views
-1

我的網站是:http://bit.ly/OF9NHSFacebook的登錄/連接窗口「凍結」 Perrmissions授予(XD PROXY)後

在對頁面的下半部分選擇啓用箱,當我點擊Facebook連接按鈕,然後登錄,它只是一個空白的窗口「掛起」,什麼都不做。

如何讓它繼續,以便將用戶信息返回給我的表單?

我在這裏搜索,但還沒有找到任何解決方案,我的情況。 謝謝:-)

這裏是我的代碼:

///////////////////////////////////////////////////////////////////////////////////////////////////// 
/// facebook + optin box scripts 
///////////////////////////////////////////////////////////////////////////////////////////////////// 

    window.fbAsyncInit = function() { 
     FB.init({ 
     appId  : '271302529636100', // App ID 
     status  : true, // check login status 
     cookie  : true, // enable cookies to allow the server to access the session 
     xfbml  : true // parse XFBML 
     }); 
    }; 
    // Load the SDK Asynchronously 
    (function(d){ 
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; 
     if (d.getElementById(id)) {return;} 
     js = d.createElement('script'); js.id = id; js.async = true; 
     js.src = "//connect.facebook.net/en_US/all.js"; 
     ref.parentNode.insertBefore(js, ref); 
    }(document)); 



//   FB.init({ 
//    appId:'271302529636100', cookie:true, 
//    status:true, xfbml:true 
//   }); 
     function register_with_fb_222(){ 

      FB.login(function(response) { 

      if (response.authResponse) { 
       FB.api('/me', register_user_fb_222); 

      } else { 
       alert('You need to Grant Permission to Register with Facebook.') 
      } 

     }, {scope:'email,user_about_me'}); 

     } 
     function register_user_fb_222(user){ 
      document.getElementById('name1').value=user.first_name; 
      document.getElementById('email1').value=user.email; 
      document.forms['mainForm1'].submit.click(); 

     } 
+0

不幸的是,一旦問題得到解決,這個問題就不再適用了,因爲問題的證據將會消失。 – JimmyPena 2012-08-02 18:41:56

+0

嗨。我不確定我是否理解評論......但是我很樂意在解決此問題方面提供任何幫助:-)我添加了我的js代碼以防萬一。謝謝 – 2012-08-05 16:43:16

+0

我的意思是,不要只鏈接到需要修復的網站。否則,一旦問題解決,這個問題將會對未來的訪問者失去任何價值。有關更多信息,請參見[我網站上的某些內容不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackexchange.com/q/125997/147645)。另外,除非您有具體的理由,否則請勿使用短鏈接。沒有人會點擊它們,因爲他們不知道鏈接的位置。你有10k以上的字符來陳述你的問題,沒有理由使用短鏈接。 – JimmyPena 2012-08-05 20:37:45

回答

1

您需要從您的標記刪除

<div id="fb-root" class=" fb_reset"> 
    <div style="position: absolute; top: -10000px; height: 0px; width: 0px; "> 
     <div> 
     <iframe id="fb_xdm_frame_http" name="fb_xdm_frame_http" src="http://static.ak.facebook.com/connect/xd_arbiter.php?version=6#channel=f2929cfda&amp;origin=http%3A%2F%2Fwww.hinsdalearearugcleaning.com&amp;channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df30d8d28b%26&amp;transport=postmessage"></iframe> 
     <iframe id="fb_xdm_frame_https" name="fb_xdm_frame_https" src="https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=6#channel=f2929cfda&amp;origin=http%3A%2F%2Fwww.hinsdalearearugcleaning.com&amp;channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df30d8d28b%26&amp;transport=postmessage"></iframe> 
     </div> 
    </div> 
    </div> 

(其中的方式是非常極端的!),你搞亂JS SDK的內部實現細節...

該頁正在加載超過10MB的資源,其中兩個PNG的每個超過4MB ...

+0

謝謝DUDE !!!!!修好了!現在它完美的工作! :-) 有人請這個答案,因爲我沒有足夠的聲譽。 – 2012-08-14 18:18:39