title: Refused to display document because display forbidden by X-Frame-Options
body: <p>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:</p>
  
  <p>"Refused to display document because display forbidden by X-Frame-Options."</p>
  
  <p>I've been able to reproduce this every time I hit the "check login status" page of the app only <em>while using Facebook as a page</em>, rather than my user account. This is easy enough to avoid now that I know this causes the problem, but obviously my users may not know this.</p>
  
  <p>Is there a way to determine whether or not the user is using Facebook as a Page or not? Since that seems to pretty much ruin my entire app.</p>