Using Facebook connects inside an IFrame (not an iframe inside facebook)

I am trying to use a Facebook connection in an IFrame. It seems that after the user completes the authentication and grants permissions for my application, the Facebook cookies will not be saved in the browser.

This is the scenario:

1) The user clicks the connect button inside my iframe.

2) The user is authenticated using FB Connect.

3) The user provides permissions for my application.

4) The iframe page is being updated, but the server-side API still does not return the user. Facebook cookies are not in the browser (I think the problem)

5) The server displays the registration completion page again, and FB Connect JavaScript identifies the user as being executed from the system.

6) In some browsers, updating the IFrame content fixes this problem.

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

I have been trying to solve this for two days now. Please, help!

thanks

+5
source share
1 answer

Facebook has javascript code (at least on related pages related to api) that checks if it loads in an iframe and disables the page. I think this will prevent a mouse click.

Facebook does not want you to do what you are trying to do. Use a popup window instead.

+3
source

All Articles