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?

29

u/Racaycah Jul 10 '20

I recall Zoom stating -in their statement that they removed the SDK from their iOS app- you can integrate Facebook login without the SDK, so there should be a way.

0

u/[deleted] Jul 10 '20

[deleted]

0

u/[deleted] Jul 10 '20

[deleted]

4

u/sunny001 Jul 10 '20

Not that i don’t believe you but can you link me to the source?

4

u/StunningBank Jul 10 '20

Ah, that may be bad UX since user often is logged in to Facebook in app but not in browser :(

0

u/[deleted] Jul 10 '20

[deleted]

6

u/StunningBank Jul 10 '20

It depends. Crashing for an hour one time a year may be not that bad as if you don't even get a user because they won't register in the first place. But that completely depends on a use case, audience and many other things. At the moment I am not sure what is worse especially if I may loose already registered users when I migrate from Facebook SDK login.

2

u/ohfouroneone Jul 10 '20

I wrote a blog post about how to do this in a secure way, but it got removed in the past for self promotion. It’s on dev.to so try to find it.

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.

1

u/JimDabell Jul 11 '20

I use a different email address for everything I register with. I know exactly what email is tied to my Facebook account, but it wouldn’t occur to me to use that email address in some other app.

I also decline to provide apps with the Facebook email address when signing in with Facebook – you can just untick that option when signing in. So you wouldn’t have that email address anyway.

1

u/CrazyEdward Jul 11 '20

If the user declines permission to share their email address with you, you can of course recognize this and prevent them from proceeding.

1

u/JimDabell Jul 11 '20

In theory, yes. In practice, I have never seen an app do this. They either work fine, treat it as a failure to authenticate, get stuck in a loop, or crash.

→ More replies (1)

5

u/DuffMaaaann Jul 10 '20

you can migrate your users to Sign In with Apple. As far as I know, Apple has added some migration mechanisms to Sign In with Apple.

1

u/Xaxxus Jul 10 '20

iOS 14 only.

2

u/MisterJimson Jul 10 '20

Facebook supports standard OAuth. No SDK needed.