Facebook login dialog doesn't close in IE

I have a strange problem. After I enter my Facebook login information in a popup dialog, it returns a blank page and the popup never closes. This only happens in IE. On Chrome, FF, and even Safari works fine. Could you help me solve this problem? I want to know what the problem is.

+4
source share
4 answers

I encountered the same problem as you.

I solved this by providing channelUrl with the channel.html file in the FB.init file as follows:

FB.init({ appId: '[your appid]', channelUrl: 'http://[your website]/channel.html', status: true, cookie: true, xfbml: true }) 

The channel.html file should contain only a script line to connect the facebook all js file as what should now be on your page next to FB.Init. Once you have placed this line of code in the channel.html file, remove it from your page.

Hope this helps

+2
source

It took me time for my college, it had a really strange reason, but it solved the problem:

he replaced:

  <a href="#" onclick="fbLogin(); return false;"> Login </a>

by

  <a href="javascript:fbLogin();"> Login </a>

the fbLogin () function caused a popup via FB.login ()

+1
source

In most cases, this happens when you test your site at a different URL than the one you set in your application’s settings. Make sure your canvas and other URLs are correct.

0
source

I was able to solve the problem by following the suggestions on this page, which include adding a URL channel, as suggested in mlapre's answer:

http://developers.facebook.com/blog/post/530/

0
source

Source: https://habr.com/ru/post/1342401/


All Articles