代碼在我的網頁上:應用程序加載時出錯了Facebook SDK
<body class="popup">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '476947702378530', // App ID from the app dashboard
channelUrl : '//www.majorforms.com/fb_channel.php?_lang_id=1',// Channel file for x-domain comms
status : true, // Check Facebook Login status
xfbml : true // Look for social plugins on the page
});
// Additional initialization code such as adding Event Listeners goes here
};
// Load the SDK asynchronously
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
加載該頁面與瀏覽器後,我得到這個錯誤在Firebug控制檯:
Application Error: There was a problem getting data for the application you requested. The application may not be valid, or there may be a temporary glitch. Please try again later.
我不真的很明白。我沒有一個真正的應用程序,我只是使用了Facebook(公司)帳戶的標識符。我不想創建一個新的Facebook應用程序,我只想使用特定的Facebook帳戶的憑據。我怎麼做?
我也有這個錯誤使用在測試模式下的FB應用程序。所有的API調用都可以工作。 – Guus 2017-09-17 08:30:04