Backendless Support
 
Waiting for user's response

UserService.handleOpenUrl: cannot open url for user if user is not logged in on Facebook in Safari

Facebook easy login fails if user wasn't logged in on Facebook in Safari.

When I try to log in with a user who is not logged in on Facebook yet, I get the following error:

UserService -> handleOpenURL: ERROR = Error Domain=NSCocoaErrorDomain Code=3840 "Garbage at end." UserInfo={NSDebugDescription=Garbage at end.}

If I try to log in with this user afterwards, login succeeds (by that time the user is already logged in on Facebook). And if I perform logout on Facebook before trying to log in, I get this error again.

I've noticed that when user is not logged in on Facebook, the url is just the same as the valid one, except for that it has the following symbols at the end:

#_=_

I use the latest version of Backendless iOS SDK (3.0.40)

Leave a Comment

Comments (3)

photo
1

Elena, thank you for your detailed description of the problem.

The internal task BKNDLSS-13234 is created.

photo
1

We have fixed this problem. You can update the latest Backendless SDK (pod 3.0.41 release).

There is our Swift 3 sample project in attachment. You could try it, how it will work for you?

photo
1

It works now. Thank you!

photo