0

I am writing a JavaScript-based browser extension (using CrossRider.com).

How can I use JavaScript to logout from Facebook Chat. I want to force the user to go "offline" automatically via code.

Nathan H
  • 48,033
  • 60
  • 165
  • 247

1 Answers1

0

I would suggest that the correct way to end a user's FB session is to create an FB app and use the FB.logout SDK method. If this is not possible, then you can try deleting the FB session cookie which should terminate the login.

Shlomo
  • 3,763
  • 11
  • 16