Monday 26 September 2011

Facebook Javascript SDK: Security error "Permission denied" in IE while login

Facebook platform is really not friendly with IEs browsers and I'm sure that a lot of developers have many difficulties in IE while working with Facebook. Recently I've faced a troubles in IE7 and IE8 while calling method FB.login(); Authentication popup appears but after that security error popup is shown with text like:
Message: Permission denied
Line: 22
Char: 4250
Code: 0
URI: https://connect.facebook.net/en_US/all.js
In other browsers everything works fine. There is a hack that allows to avoid this error in IE. It is necessary to add some piece of code after calling FB.init() on client side:
  FB.init({
    appId:        'xxxxx',
    appSecret:    'xxxxxxxxx',
    status:        true
    cookie:        true
  });
  // this code solves the issue
  FB.UIServer.setLoadedNode = function (a, b) { 
    FB.UIServer._loadedNodes[a.id] = b; 
  };
The trouble is described in Facebook Bugzilla: http://bugs.developers.facebook.net/show_bug.cgi?id=20168 Hope, it will be fixed by Facebook soon.

6 comments:

  1. Thank you very much for this. I will be linking this on a StackOverflow opened question.

    ReplyDelete
  2. A very impressive post with a lot of insight and helpful your tutorial for me . Good job.
    node js developer london

    ReplyDelete
  3. Excellent ! I am truly impressed that there is so much about this subject that has been revealed and you did it so nicely
    Thanks
    Anika Digital Media
    seo services
    web design development
    graphic design

    ReplyDelete
  4. sampaikan kepada Anda panduan bermain permainan ini khusus untuk pemula. Berikut adalah panduan bermain yang admin janjikan kepada Anda
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme terpercaya
    hobiqq
    paito warna terlengkap
    bocoran sgp

    ReplyDelete
  5. Thanks for sharing an interesting blog that made me understood about the Website Design Dubai also get it at affordable price.

    ReplyDelete
  6. this is a great article about vapes in kampala

    ReplyDelete