Facebook Login not working in PWA app if app is in stand alone state : <p>I am building a PWA webiste. I am using Angular JS and I used javascript facebook login in my website. But if I view my app in browser, facebook login is working. But when I add shortcut to homescreen and launch the app from the homescreen, FB login is not working. Facebook page is loading. But after entering credentials it shows blank page. Can anyone help ?</p>

<p>Here is my FB login code</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var doBrowserLogin = function(){
  var deferred = $q.defer();
  FB.login(
    function(response){
      if (response.authResponse) {
              deferred.resolve(response);
            }else{
              deferred.reject(response);
            }
          },
          {scope:'email,public_profile'}
       );
  return deferred.promise;
}</code></pre>
</div>
</div>
</p>

<p>It is opening the facebook login screen and after entering the credentials, it is showing blank. Not coming back to app.
<a href="https://i.stack.imgur.com/ZXMhl.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ZXMhl.jpg" alt="Blank page"></a>
In my manifest.json file, the display property is set to standalone.
Please help.</p>
