简体   繁体   中英

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

在此处输入图像描述

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.

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

在此处输入图像描述

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM