2010-11-21 119 views
0

我已經加入像按鈕,我的申請頁面:致命錯誤與FB.init:未捕獲OAuthException:錯誤驗證訪問令牌

<div id="fb-root"></div> 
<script> 
    window.fbAsyncInit = function() { 
    FB.init({appId: 'xxxxx', status: true, cookie: true, 
      xfbml: true}); 
    }; 
    (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); 
    }()); 
</script> 
<fb:like href="apps.facebook.com/myapp"></fb:like> 

隨着第一reaload每一件事情是確定的。在2-3頁重新加載後,我有這個錯誤:

Uncaught OAuthException: Error validating access token. thrown 

這是什麼問題? 我h ave searched in stackoverflow但無法找到任何結果。 (only one

回答

0

我有同樣的問題。我在Facebook開發論壇上找到了這個線程。一個老兄說你需要將你的應用程序的API密鑰添加到初始化中。像這樣:

FB.init({appId: 'xxxxx', api_key: 'yyyyy', status: true, cookie: true, 
     xfbml: true}); 

但是這並沒有解決我的問題。雖然可以幫助你。

相關問題