Facebook logout now works successfully after integrating some of the upstream changes from the openfb repository.