Hi,
After obtaining the Facebook access token successfully, I tried to login using backendless.userService.loginWithFacebookSDK(token, fieldMapping: [“id” : “facebookId” ,“name” : “name” ,“email” : “email”], response:…
After this code gets executed successfully without error (could tell from the block), I can see that the facebookId, name and email get stored in the backendless database under Data/User. (As expected)
However, when I try to print out backendless.userService.currentUser, the print statement crash while trying to retrieve backendless.userService.currentUser. Even when I try to do
if let user = backendless.userService.currentUser { print(user) }
else {print(“Error”)}
this code crashes when trying to run the first line.
Could anyone please advise what is happening here?