I am creating a Facebook Connect application that runs inside a Google gadget. As a gadget, it means the application is running inside an iframe. Inside the application there is a form that allows registered users to leave comments. Presentation is done using AJAX, but I get the same results with normal form. The problem is that I need to get facebook user id. It works fine in Firefox, but the following error appears in Internet Explorer 7:
'A session key is required for calling this method'
I believe this is due to the way IE handles third-party cookies, because if I go to the Internet / Privacy / Advanced settings and check override the automatic cookie handling and accept all cookies, it works great. I can't pass Facebook id from javascript because anyone can fake it.
EDIT: If I open the contents of the iframe directly, the application works fine. The problem is really related to the IFRAME and IE security model.
What am I doing something wrong? How can I get around this problem?
source
share