Xcode says Facebook app id isn't included in info.plist even though I have mentioned it

Viewed 720

enter image description here

As you can see, I have included the Facebook app ID in my info.plist file. Everything works fine, until I click the 'login with Facebook' button. After that it stops and throws this error. I am also using the 'login with google' feature via firebase and have heard that this is the reason why it doesn't work. I really need to have both login options, please suggest what I should do to fix this error. Thanks in advance.

1 Answers

FacebookAppID, FacebookDisplayName, LSApplicationQueriesSchemes are not in item 0 of URL types .
They are located at the root dictionary :

enter image description here

Try deleting your configs, and paste the following code into the root of plist , not in URL types

<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fbFBID</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>FBID</string>
<key>FacebookDisplayName</key>
<string>APPName</string>

Related