Facebook login within an iframe (but outside FB)
Posted
by
Cystack
on Stack Overflow
See other posts from Stack Overflow
or by Cystack
Published on 2011-06-23T23:48:12Z
Indexed on
2011/06/24
0:22 UTC
Read the original article
Hit count: 111
At some point in my application, I use an iframe. In this iframe, some Facebook stuff could be useful and for that, I use the graph API a lot. Problem is : when someone isn't logged in to facebook or hasn't allowed my application yet, they are prompted to click the "connect with facebook" button. But as soon as they click it, the iframe gets destroyed and the top page is replaced with the Facebook login page. Eventually the top page is redireccted to the previous iframe URL, but the former parent page is lost forever. Is this the intended behaviour of FB connect ? Is there a way to avoid it or to hack around it ? (maybe using a popup instead of an iframe, but that sounds ugly (uglier than an iframe)).
I am currently using the PHP SDK
Thanks a lot
© Stack Overflow or respective owner