Facebook Login Button Causes Immediate Crash on IOS

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): IOS

“expo-facebook”: “~8.2.1”

I have Facebook Login working on Android, but in IOS the app crashes immediately when pressing the Facebook button. This is happening with builds in TestFight as it seems to be the only way to test it.

I’ve seen a recent post in Expo forum where someone fixed the issue by removing FacebookUrlSchemeSuffix from app.json, but I do not see FacebookUrlSchemeSuffix in Expo docs and do not have it in my app.json.

Can anyone with Facebook Login working on IOS please share what their infoplist looks like in app.json?

Here’s what mine looks like:

  "infoPlist": {
    "facebookAppId": "Facebook appID in here",
    "facebookDisplayName": "Facebook display name in here",
    "facebookScheme":  "fb followed by Facebook appID(ie. fb3937202374903)" 

}

Any help is gReatly appreciated!

Hope this helps someone. The simple fix was to add the facebook items to “expo”: not “infoPlist”:.

hey @humanzai, we do document those app.json fields in the expo-facebook documentation, but was it not clear that the keys don’t belong under the ios.infoPlist key? We can try to make that clearer if so

Charlie, the documentation is clear. Thanks for the reply.

1 Like

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