2011-12-13 49 views
2

我有一個應用程序,使用Facebook身份驗證。用戶在使用任何現代瀏覽器時都沒有問題。用ie 7 & 8發生以下情況 -Facebook的連接 - 互聯網瀏覽器7和8 - 登錄問題 - 登錄後的空白屏幕 - fb_xd_fragment

用戶單擊登錄按鈕。 彈出facebook登錄窗口 用戶輸入他們的詳細信息並點擊提交。 的彈出仍然開放,去到一個空白頁這個網址 - https://my-app.heroku.com/channel.html?fb_xd_fragment#?=LotsOfRandomUrlParamaters

我的代碼看起來是這樣的 -

<div id="container" class="facebook_tab" > 
<div id="fb-root"></div> 
<script type="text/javascript">    
    window.fbAsyncInit = function() { 
         FB.init({ 
      appId : 'myappid', 
      status : true, // check login status 
      cookie : true, // enable cookies to allow the server to access the session 
      xfbml : true, // parse XFBML 
      oauth : false, 
      channelUrl : 'https://my-app.heroku.com/channel.html' 
     }); 

      var e = document.createElement('script'); 
      e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; 
      e.async = true; 
      document.getElementById('fb-root').appendChild(e); 
      }()); 
</script> 

這是使用這種寶石一個Rails應用程序 - https://github.com/fionnbharra/facebooker2 - 但我不認爲這是問題的原因。

用於genertae是登錄按鈕Rails代碼看起來是這樣的 -

<%= fb_login(:text=>"Log in") do %> 
    top.location.href='<%= APP_CONFIG[:my_app_url] %>'; 
<% end %> 

任何人有任何想法是怎麼回事?

回答

0

這是一個Facebook SDK問題(all.js)。嘗試在Google上搜索fb_xd_fragment。有多種解決方案,有些是解決方案,有些則不是... 您可以在https://developers.facebook.com/bugs提交錯誤報告