0

我試圖使用Facebook getAuthResponse()函數和它返回以下錯誤:Facebook的getAuthResponse錯誤:OAuth2支援殘疾人

function() {if(!FB._oauth)throw new Error('getAuthResponse called when OAuth2 support is '+'disabled. Please fix.');return FB._authResponse;} 

我使用了我最初的Facebook驗證以下內容:

FB.init({ appId: 'xxxxxxxxxxxxxxx", 
      status: true, 
      cookie: true, 
      xfbml: true, 
      oauth: true 
        }); 

而下面的代碼加載JavaScript SDK:

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

      google.maps.event.addDomListener(window, 'load', initialize); 
      google.maps.event.addListener(map, 'click', initialize); 

如果任何人都可以對這裏發生的事情有所瞭解,我將不勝感激。

回答