title: cordova-plugin-facebook4 - Blank Dialog with "Not Logged In: You are not logged in. Please login and try again"
body: <p><strong>Screenshot</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Xu5S3.png" alt="Image of Error"></p>
  
  <p><strong>Issue</strong></p>
  
  <p><code>facebookConnectPlugin.login</code> dialog shows error in screenshot. The only thing that can be done is selection of the X close-out button which results in the following error:</p>
  
  <p>errorCode: "4201"<br>
  errorMessage: "User cancelled dialog"<br>
  loginError @ facebook.js:13<br></p>
  
  <p>What are we doing wrong?</p>
  
  <p><strong>Plugin version, OS, devices, etc</strong></p>
  
  <p>8.1.1 (cordova-lib@8.1.0)<br>
  cordova-plugin-facebook4 3.0.0<br>
  Android 7.1.1<br>
  OSX 10.13.6<br></p>
  
  <p><strong>code</strong></p>
  
  <p><a href="https://github.com/lightbeard/reproduce-fb-login" rel="nofollow noreferrer">https://github.com/lightbeard/reproduce-fb-login</a></p>
  
  <pre><code>document.addEventListener('deviceready', deviceReady, false);
  
  function deviceReady() {
  
    var fbLoginSuccess = function (userData) {
      console.log("UserInfo: ", userData);
    }
  
    facebookConnectPlugin.login(["public_profile"], fbLoginSuccess,
      function loginError (error) {
        console.error(error)
      }
    );
  }
  </code></pre>