Facebook login results in black screen

Every once in a while when a user tries to login with Facebook, after he/she has successfully logged in through Facebook, the next screen is just black. Have you ever seen anything like this? The user is successfully logged in but the screen is just black. It only happens with Facebook login and the user does get logged in because once they are on the black screen and the kill the app and open it again, they are logged in.

Hi Nevin,
please clarify which SDK you are using?

We are using the latest version of the backendless SDK and we are using version ‘~>4.15.1’ of the FB SDK. The latest version of the FB SDK was giving us trouble and returning nil for users who tried to login with Facebook.

Nevin, please clarify what kind of ViewController class do you use for Facebook button location.

Do SFSafariViewController return to it after login was finished?

We use the “FBSDKLoginButton” See the code for the outlet here:

The screen just goes black after the SFSafariViewController is dismissed.

 
 
 
 
 
 
@IBOutlet weak var facebookLogin: FBSDKLoginButton!


Have you seen this before? It is starting to happen more often now.

It happens before the segue to the next view controller but after the user is authenticated using Facebook.

Now with Facebook login, it is going to the Facbeook app opposed to using the safari View Controller like it did before. We have not made any changes on our end and this is happening.

In case of login with Facebook SDK Backendless SDK makes only login on backend, it does not control the view controllers - Facebook SDK does this.

Perfect. Thanks!

Here is our sample project (see in attachment). It demonstrates how Backendless SDK works with Facebook SDK.

TestS3FacebookSDKLogin.zip (20.21MB)

Perfect. Thanks. I have reached out to FB about this and will keep you posted.