Search code examples
iosfacebookparse-platforminfo.plistapp-id

Swift Facebook Login AppID Not Registered as a URL Scheme


I'm getting the following error when trying to login with Facebook

Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fb---AppID--- is not registered as a URL scheme. Please add it in your Info.plist'

The problem is the "fb---AppID---" is in my Info.plist file. I followed the 3 bullet 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 in the documentation? Did I not configure it correctly somewhere else?

enter image description here


Solution

  • I figured out the solution. Do not copy and paste the App Name given to you on step 2 of the section titled "Configure your info.plist" on the facebook documentation.

    I assumed it was the name of my ios project, but it's actually the App Name in your bundle identifier. The only difference between the two was that the first character of the app name in my bundle identifier was not capitalized.