I'm trying to use the Facebook Connect Javascript api to login a user to my website. I've read the documentation and I'm a bit lost. I can get the facebook connect button to appear and to login, but I can't get it to do the below.
-after logging in I need to call a javascript function in my application so that I can update my database. Is there maybe a way to redirect to html page after successfully logging in with facebook connect?
Also, when I'm not connect (remove the app from my facebook account) and I'm logged into Facebook, the below doesn't run, should it? Thanks for the help!
FB.logout(function(response) {
alert("You're not connected!");
});
Open in new window