Facebook website error: app may be invalid
I am getting strange error in Facebook web app via console:
Failed to get data for the application you requested. The app may be invalid or there may be a temporary crash. Please try again later. - oauth: 1
Turning sandbox mode on or off doesn't help. I go to Heroku. Any ideas what might be causing this?
+3
source to share
1 answer
This happened to me when I used pageId instead of 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.
+4
source to share