views:

117

answers:

1

Hello all,

In my joomla application I am facing a problem . user can log in my application through facebook ,but I want whenever user log out from my application, it must be log out from facebook account too.

Please give me your suggestion or any idea how can i do this?

Thanks

+1  A: 

I assume you're using Facebook Connect?

If so, just do the following in JavaScript:

FB.Connect.logout(); // old JS API
FB.logout(); // new JS API

http://developers.facebook.com/docs/reference/javascript/FB.logout http://developers.facebook.com/docs/reference/oldjavascript/FB.Connect.logout

RPM1984
I use this but it's not working in any browser except FF.
Seema
which JavaScript SDK are you using? im using the old JS API and FB.Connect.logout() works for me in ALL browsers.
RPM1984