我通过控制台在 Facebook 网络应用程序中遇到一个奇怪的错误:
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. - oauth:1
进入或退出沙盒模式似乎没有帮助。我正在使用 Heroku。知道是什么原因造成的吗?
最佳答案
当我使用 pageId 而不是 appId 时,这发生在我身上......
(function(d, s, id, appId) {
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_US/all.js#xfbml=1&appId=" + appId; //<--passing config value here
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk', config.appId)); //<--I added the extra param here b/c I am loading the config via a xhr.
关于javascript - Facebook 网页错误 : The application may not be valid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14430720/