Swift Facebook Login AppID Not Registered as a URL Scheme

10,073

Solution 1

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.

Solution 2

Another issue with that may be if you already integrated another login service like Google for ex, and you already have the "URL types" and "URL Schemas" in your info.plist

Make sure you looked the entire info.plist and not duplicating those nodes, just ad your Facebook data to the existing ones.

Share:
10,073
josealvarado111
Author by

josealvarado111

Updated on June 04, 2022

Comments

  • josealvarado111
    josealvarado111 almost 2 years

    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