facebook.logout()

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

Overview

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

This logout comes back as a fbconnect event that is sent to the listener function which was registered with the call to 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()