I have upgraded Facebook SDK from 3.21.1 to 4.1 in an iOS app (already live).
I followed carefully the upgrade guide, and implemented the new methods for login. The code I used is the one provided in Facebook documentation.
But since the upgrade, each time I try to log in (device or simulator, webview or Facebook app), I can go through the login flow successfully, but when I fall back on my app, the login does not return any error but returns a FBSDKLoginManagerLoginResult "isCancelled".
As a workaround, I tried to implement app invites, which do not require login, but I'm stuck with a "Attempting to authenticate in FB" in the console... No luck here either.
So I guess it has something to do with the authentication fallback and the URL scheme in the info.plist, but I double checked there, and the data (which was working fine before the upgrade) is the same as the one indicated in Facebook documentation.
Anyone has any clue?? Thanks!
What I already checked:
- I did not change the info.plist which was already set up to use Facebook SDK and worked fine before the upgrade.
- The user account I use for login also worked fine before this upgrade.
- I do not have any currentAccessToken before or after Login process.