johnnygaddaar.cs58
New Member
- Messages
- 21
- Reaction score
- 1
- Points
- 0
Hello Guyz,
First of all, I hope that I am posting this in the Right Section :tongue:
Actually, I am using Facebook Connect API in my Website so that people can also Login into my website through Facebook. I am using both Registration + Login system.
Everything is working fine. When User Logs In to My website using Facebook, it snatches user's details like username and hi/her profile photo etc and make his/her account.
But the Problem is that I am unable to Log them out.
Right Now, I am using a hidden IFRAME in the Logout Screen page which Loads a page containing script to Log Out user from Facebook.
But, It is not getting Logged Out.
Due to this, When a User Logs In after filling the Login Info of FB once and then Logs Out of Website, and then again click Login using FB button, this Time it doesn't ask for the Login Info and Logs In as the Same User.
It means anyone can Log In as that previous User account which hopefully no one wants.
Please if you know much about Facebook API, then Please help me to get a code for Logging Out of Facebook.
I am using this page as my IFRAME in LOGOUT SCREEN.
http://www.clan-icsl.com/fblogout.html
So Please tell me What CODE should I use with Facebook API to Log Out a User. I can't Find any solution on Facebook Developers Help. So I posted here.
Thank You
First of all, I hope that I am posting this in the Right Section :tongue:
Actually, I am using Facebook Connect API in my Website so that people can also Login into my website through Facebook. I am using both Registration + Login system.
Everything is working fine. When User Logs In to My website using Facebook, it snatches user's details like username and hi/her profile photo etc and make his/her account.
But the Problem is that I am unable to Log them out.
Right Now, I am using a hidden IFRAME in the Logout Screen page which Loads a page containing script to Log Out user from Facebook.
But, It is not getting Logged Out.
Due to this, When a User Logs In after filling the Login Info of FB once and then Logs Out of Website, and then again click Login using FB button, this Time it doesn't ask for the Login Info and Logs In as the Same User.
It means anyone can Log In as that previous User account which hopefully no one wants.
Please if you know much about Facebook API, then Please help me to get a code for Logging Out of Facebook.
I am using this page as my IFRAME in LOGOUT SCREEN.
http://www.clan-icsl.com/fblogout.html
Code:
<html>
<head>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
function facebook_logout() {
FB.Connect.logout(function() { FBCLogout() })
function FBCLogout() {
document.write('logged out');
}
}
</script>
</head>
<body onload="facebook_logout()">
</body>
</html>
So Please tell me What CODE should I use with Facebook API to Log Out a User. I can't Find any solution on Facebook Developers Help. So I posted here.
Thank You