Swift Facebook Login AppID Not registered as URL Scheme
When trying to login with Facebook
I am getting the following error:Application terminated due to uncaught 'InvalidOperationException', reason: 'fb --- AppID --- not registered as a URL scheme. Add it to your Info.plist
The problem is that "fb --- AppID ---" is in my Info.plist file. I followed the 3 points listed in the FB documentation shown here .
I copied the app name and app id directly from the documentation. What am I doing wrong? Is there a step missing from the documentation? I couldn't set it up correctly elsewhere?
source to share
I figured out the solution. Do not copy or paste the application name you provided in step 2 of the "Customize your info.plist" section in the facebook documentation .
I assumed it was the name of my ios project, but it is actually the name of the application in your bundle id. The only difference between the two was that the first character of the application name in my package ID was not capitalized.
source to share
Another problem might be that you have already integrated another login service like google for example and you already have "url types" and "url schemes" in your info.plist
Make sure you go through the whole info.plist and don't duplicate these nodes, just add your Facebook details to the existing ones.
source to share