facebook.logout()

Type Function
Return value Event
Revision Release 2024.3703
Keywords Facebook, logout
See also facebook.login()
facebook.*
fbconnect

Overview

Logs the application out of the user’s Facebook session.

This logout comes back in the form of a fbconnect event that is sent to the listener specified within facebook.setFBConnectListener() or facebook.login().

Gotchas

This does not log the device’s user out of Facebook entirely. If the user is logged into Facebook through a native Facebook app or the device’s browser, they will remain logged in via those means.

Syntax

facebook.logout()