User Cancelled Dialog (4201) error when logging in Facebook
<p>i'm trying to make facebook login in ionic 2 app.
i get this error when i'm trying to log in with chrome://inspect or in my smartphone</p>

<blockquote>
  <p>Object {errorCode: "4201", errorMessage: "User cancelled dialog"}
  <a href="https://i.stack.imgur.com/f6LFm.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/f6LFm.jpg" alt="enter image description here"></a></p>
</blockquote>

<p>that's my facebookLogin code</p>

<pre><code> loginWithFacebook(){
Facebook.login(['email']).then((response) =&gt; {
  alert('Logged in');
  alert(JSON.stringify(response.authResponse));
},(error)=&gt;{
  alert(error);
})
</code></pre>

<p>}</p>

<p>in android emulator it works fine.</p>

<p>i checked in chrome://inspect and in ion-view app(of ionic 2) then i see this problem..
i see the login and then when i press facebook login it's open in different page the confirm and i can't press ok</p>

<p>in addition when i try some times i get this
<a href="https://i.stack.imgur.com/QGVwR.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/QGVwR.jpg" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/UTbgc.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/UTbgc.jpg" alt="enter image description here"></a></p>