Can't sign in to Facebook using code and IE11

Can't sign in to Facebook using code and IE11

It might be the wrong forum for this question but since I don't find a solution I will ask anyway.

I sign in to Facebook using the following code -

  1. FB.login(function (response) {
  2. console.log('Welcome! Fetching your information.... ');
  3. if (response.authResponse) {
  4. FB.api('/me', function (response) {
  5. console.log('Good to see you, ' + + '.');
  6. });
  7. } else {
  8. console.log('User cancelled login or did not fully authorize.');
  9. }
  10. }, { scope: 'email, public_profile' });

When I use this code win IE11 it opens a Log in dialog and let me type in my credentials, after I click the "Log in" button the login dialog returns an empty page, it does not sign me in to Facebook and it stays open.

The code works fine with Chrom, FF, MS Edge.

I tried to  reset IE11 and clear cookies and history still it does not work.

Environment -
Win 10

Hope someone can assist,