views:

496

answers:

0

Hello, I'm trying to use Facebook connect in an IFrame. It seems that after the user finishes authenticating and granting my app permissions the Facebook cookies aren't saved on the browser.

This is the scenario:

1) The user presses the connect button inside my Iframe.

2) The user is authenticate with FB Connect.

3) User grants permissions for my app.

4) The iframe page is refreshed, but the server side API still doesn't return a user-The Facebook cookies aren't in the browser (I think that's the problem)

5) Server displays the logged out page again and the FB Connect JavaScript identifies the user as being logged out.

6) On some browsers, refreshing the IFrame content fixes this issue.

If I load the iframe url in its own window, outside of the iframe, everything works.

I've been trying to solve it for two days now. Please help!

Thanks