Catching the Facebook Login Event to change the HTML of the parent page

Posted by Arkid on Stack Overflow See other posts from Stack Overflow or by Arkid
Published on 2010-05-11T19:33:08Z Indexed on 2010/05/11 19:44 UTC
Read the original article Hit count: 284

I am trying to create Facebook based login using Javascript. Once a person clicks a button he should get a div replaced by another div, if he is logged in to Facebook. However, if he is not logged in to Facebook he is asked his Facebook credentials and he logs in. However, we need the user to click the button once more for the div replacement to happen in this case.

I want to know if there is a way in which I can catch the Facebook login event and change the div? Is polling a way or there is some other way out. I want to use only Javascript.

© Stack Overflow or respective owner

Related posts about single-sign-on

Related posts about facebook