title: Refused to display Facebook URL in a frame because it set 'X-Frame-Options' to 'deny'
body: <p>I am using Facebook Javascript SDK in one of the Angular6 application for integrating FB Login. Everything works fine if I am logged into Facebook. But when I am logged out from Facebook, it is showing an error which says <code>Refused to display 'https://www.facebook.com/connect/ping?client_id=######&amp;domain=######&amp;origin=1&amp;redirect_uri=####&amp;response_type=token%2Csigned_request&amp;sdk=joey&amp;version=v3.1  in a frame because it set 'X-Frame-Options' to 'deny'.</code>. I have checked the oauth URL settings in my Facebook application dashboard and it has my domain it it correctly. How to fix this issue ?</p>
  
  <p>The code I am using is :</p>
  
  <pre><code>FB.getLoginStatus(
             (response: any): void =&gt; {
                 if (response.status === 'connected' &amp;&amp; response.authResponse) {
                     FB.api('/me/permissions', (permissions) =&gt; {
                         for (let i = 0; i &lt; permissions.data.length; i++) {
                             if (permissions.data[i].status === 'declined' &amp;&amp; permissions.data[i].permission === 'email') {
                                 emailDeclined = true;
                             }
                         }
                         if (!emailDeclined) {
                             this.userFacebookLogin(response);
                         } else {
                             this.fbLogin('rerequest');
                         }
                     });
                 } else {
                   console.log('Not connected');
  
                 }
             },
             true
         );
  </code></pre>