Facebook logout in Javascript

Hello,

I’m trying to use simple Facebook login functionality using Javascript SDK (Backendless.UserService.loginWithFacebook). Two questions:

  • How can I logout user?
  • How can I access user properties (Backendless.UserService.getCurrentUser() returns null)?

Thanks in advance

You can logout with a built-in method, the same way as with the plain login.

The CurrentUser() object is not populated automatically, you need to first retrieve it by userId.