Open Cptweirdo opened 3 years ago
Hey, from the description "neither success nor error callbacks are triggered", but from the log it seems like a FBError was returned. Do you mind confirming the behavior? thanks
We're facing same issue, it probably caused by Facebook gaming. Our Facebook contact informed us they're internally investigating in this issue (I don't have any public issue or detail link).
Likewise. The callback just says unknown error on the callback. FB.LogInWithReadPermissions("gaming_profile", "user_friends", Callback);
Do you use Appsflyer? If yes - use swizzling for it
Do you use Appsflyer? If yes - use swizzling for it
We do not use AppsFlyer, but we do use a lot of other SDKs. Ironsource, Firebase, Amplitude, Adjust and the list goes on.
Some users are still experiencing not being able to login.
@EllieTellie Make a search in you project to AppDelegateListener You need to merge all AppDelegateListeners in one
Ok yes, we do have UnityRegisterAppDelegateListener(...) and an SDK which is overriding UnityAppController and maybe messing with this. Thanks a lot @IgorGalimski
Do you use Appsflyer? If yes - use swizzling for it
I believe this is unrelated. We use appsflyer and swizling enabled. The sytmptoms are different when the problem is swizling, the login callback is never called. In this issue the callback is called with "An unknown error has occurred."
Ok here's what fixed our case (non-appsflyer but similar issue). We had an SDK that implemented a custom AppController to replace the UnityAppController but that custom AppController had an override for continueUserActivity which always returned YES preventing other apps like Facebook from handling it. Simply returning NO and allowing other Apps to handle them fixed it for us.
Checklist
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
2018.4.32(.NET 3.5)
12.4
9.0.0
[iOS]
version14.5(18E5154f)
Goals
Log into the game using facebook gaming login via the Facebook app.
Expected Results
User taps the login button, gets a propmt to switch to the Facebook app. On confirmation user is returned to the app where login success callback is executed.
Actual Results
On confirming login in the facebook app, user is returned the our app, but neither success nor error callbacks are triggered.
Steps to Reproduce
Code Samples & Details
Our issue seems to be similar to these issues:
However suggested fix to enable the iOS swizzling for the AppsFlyer SDK does not solve problems for all the users.
Here's a log of the error: