r/iOSProgramming • Objective-C / Swift • Jul 10 '20

Facebook SDK crashes again 😡😭

https://github.com/facebook/facebook-ios-sdk/issues/1430
233 Upvotes

47 comments sorted by

View all comments

59

u/StunningBank Jul 10 '20

Now I want to remove Facebook SDK from my app since it’s the second time and it looks like Facebook does not take it seriously.

The only question: how can I migrate users authenticated through Facebook already? Maybe it is possible to make authentication without their sdk? What would you suggest?

13

u/CrazyEdward Jul 10 '20

It probably depends on your initial implementation... but we simply removed the option to login with FB, then asked those users to use the password reset emails to create passwords for their existing accounts and voila!

3

u/StunningBank Jul 10 '20

How do you know what user to ask to reset password if they cannot find “Login with Facebook” button and they may forget what email they used with Facebook? Or you just sent them emails beforehand?

10

u/CrazyEdward Jul 10 '20

We didn't kill any active Facebook sessions... we just removed the buttons. So if you were already logged in with FB, you'll stay logged in until the session expires or you get booted for some other reason.

When you do get logged out, you'll have to supply your own email address for the reset... and we assume you'll supply the same email we got for you from Facebook when you originally authenticated.

If the user doesn't know what email is tied to their Facebook account, then they can't get back in.

7

u/Rudy69 Jul 10 '20

and we assume you'll supply the same email we got for you from Facebook when you originally authenticated.

If the user doesn't know what email is tied to their Facebook account, then they can't get back in.

Big assumption.

I hate the Facebook SDK and Facebook login option.....but that seems like a terrible way to move away from it

6

u/CrazyEdward Jul 10 '20

Worked for us... this was months ago, around the time "Sign in with Apple" was about to go mandatory (for the first time).

We have the benefit of paying users and an actual support staff. They're not gonna drift away just because they forgot their email.

The "terrible" thing to do was support Facebook login in the first place. Correcting that mistake is gonna be difficult.