开发者

Facebook FB.ui SDK function not working properly in I.E

开发者 https://www.devze.com 2023-04-11 00:47 出处:网络
I\'m currently using this code in one of my FB Apps: FB.ui({ method: \'permissions.request\', perms: \'user_website,email\',

I'm currently using this code in one of my FB Apps:

FB.ui({
       method: 'permissions.request',
       perms: 'user_website,email',
       display: 'popup'
       },function(response) {
      if (response.status === 'connected') {
        if (response && response.perms) {
           FB.api('/me', function(response) {
            });
        } else if (!response.perms) {
        }
    }
});

Which ask user to login and authorize the application with a dialog box. The dialog cancel and allow buttons work fine in all browser but in IE. Whe开发者_如何学JAVAn I click on cancel or allow buttons the dialog box does not disappear (i.e dialog box stuck out).


Accoding to faceook :

XFBML substantially improves the performance of social plugins in Internet Explorer and also reduces some known issues (see FB.init for more details). In order to use XFBML on your webpage, you must add an XML namespace attribute to the root element of your page. Without this declaration, XFBML tags will not render in Internet Explorer.

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

do you have your html tag formated as above..??

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号