我使用jQuery庫對用戶進行認證,使用這個腳本:Facebook上的JavaScript SDK幫助1002
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
// Initialize the library with the API key
FB.init({ apiKey: 'SECRET_KEY' });
// Fetch the status on load
FB.getLoginStatus(handleSessionResponse);
dojo.connect(dojo.byId('login'), 'click', function() {
FB.login(handleSessionResponse);
});
dojo.connect(dojo.byId('logout'), 'click', function() {
FB.logout(handleSessionResponse);
});
dojo.connect(dojo.byId('disconnect'), 'click', function() {
FB.api({ method: 'Auth.revokeAuthorization' }, function(response) {
clearDisplay();
});
});
是表示
出現了一個錯誤,請重試。然後按OK按鈕。
當我點擊確定按鈕,它說:
對不起,出事了。 我們正在努力盡快解決問題。
您的handleSessionResponse回調方法在哪裏定義? – christophmccann 2012-03-03 15:56:34