I\'m building a Facebook app and I have noticed that when attempting to get the login status of the user using their Javascript API, I sometimes get the error:
document.write(isFacebookPage()?"YES, I'm in a Facebook Page!":"No, not a Facebook Page");
function isFacebookPage(){
return (document.location.href.indexOf('/pages/')>0);
}