兼容在使用新的javascrip SDK爲Facebook我收到以下錯誤試圖未捕獲的錯誤... FB.Auth.setAuthResponse只的OAuth2
(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);}());
window.fbAsyncInit = function(e) {
var curLoc = window.location;
var channel = curLoc.protocol + "//" + curLoc.hostname + (curLoc.pathname).substr(0,(curLoc.pathname).lastIndexOf('/')) + "/channel.html";
FB.init({ appId: APP_ID,
status: true,
cookie: true,
xfbml: true,
channelUrl: channel,
oauth: true});
FB.getLoginStatus(isUserLoggedIn);
FB.Canvas.setAutoGrow();}
Uncaught Error: FB.Auth.setAuthResponse only compatible with OAuth2
時會是怎樣的這起因?我的應用程序處於SSL模式,我似乎無法弄清楚爲什麼會出現這種錯誤。