Question about FBSDKLoginKit after detaching

#1

Hey all,
So as I continue perilous journey in Detach land. I find myself needing to use the Facebook SDK https://developers.facebook.com/docs/react-native/login login button for making use of the native Facebook mobile app for logging in. But as you can see the directions Facebook suggests doesn’t really work with the detached state of an Expo app.

Does the FBSDKLoginKit installed via Cocoapods to a detached Expo is suffice enough to recreate the LoginButton component from Facebook? Or does one need to do additional steps to get this working?

1 Like
#2

Yeah you can install FBSDK as a cocoapod into a detached Expo project. It’s though a nightmare because FBSDK changes all the time. I think I actually screamed when trying it - can’t remember though it’s all a blur :scream:Also I remember having to clear my derived data a lot.
Best wishes :grin:

#3

Yeah I did that already since it was included in the docs to do a pod install. So hold the phone here…does that I don’t have to do react-native install react-native-fbsdk react-native link react-native-fbsdk anymore to get the native facebook login button working??

#4

@jamongkad can you provide some more information about what’s breaking when trying to react-native link in the detached project? IIRC we did a bunch of work to make RN link compatible with the Cocoapods project that a detached Expo project creates.

#5

After doing react-native link react-native-fbsdk, I open payondelivery.xcworkspace and see this error. 48%20PM

#6

Has anybody here running into the same problem as me? Hope to get your thoughts!

#7

Am I the only one going through this problem?

#8

Hey @jamongkad,

Take a look at these docs: https://docs.expo.io/versions/latest/guides/expokit.html#ios

Cheers,

Adam

1 Like
closed #9

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.