Facebook Sdk: App Not Registered as a Url Scheme

Facebook SDK: app not registered as a URL Scheme

Follow these three steps:

  1. Create a key called FacebookAppID with a string value, and add the app ID there.
  2. Create a key called FacebookDisplayName with a string value, and add the Display Name you configured in the App Dashboard.
  3. Create an array key called URL types with a single array sub-item called URL Schemes. Give this a single item with your app ID prefixed with fb. This is used to ensure the application will receive the callback URL of the web-based OAuth flow.

The finished .plist should look something like this:

Sample Image

Source Link:

Swift Facebook Login AppID Not Registered as a URL Scheme

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.

FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme

In myapp-Info.plist, I renamed URL Schemes key to CFBundleURLSchemes:

Before:

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>URL Schemes</key>
<array>
<string>fb***</string>
</array>
</dict>
</array>

After:

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb***</string>
</array>
</dict>
</array>

The difference is not visible in XCode because CFBundleURLSchemes is aliased with URL Schemes.

As a consequence, you have to edit myapp-Info.plist manually.

Facebook iOS SDK 4.2: Invalid URL Schemes for Multiple App Environments

Got it solved. As it turns out, I can only define one FB URL Scheme per scheme. I also forgot to define FacebookURLSchemeSuffix. So, what I did is, I use user-defined setting to alternate between staging and production build. Here's how I did it.

  1. Go to Targets > Build Setttings and add user-defined setting.

Sample Image

Then, I set my user-defined values(FB_SCHEME) to staging for staging build and vice versa.

  1. In my App-info.plist file. I set my FacebookURLSchemeSuffix and URL scheme to the following:

Sample Image
Sample Image

Now, whenever I switch between schemes, it will set the value of ${FB_SCHEME} to production or staging. That's it.

error in xcode 6 is not registered as a URL scheme. Please add it in your Info.plist

I think the solution is

Replace URL types -> CFBundleURLTypes, URL Schemes -> CFBundleURLSchemes

even though it changes back automatically.
hit the play button and that’s it

Facebook IOS SDK URL scheme generation

Currently it doesn't. If you pass in something that's inconsistent then it won't return to your app. You should always test your app with all FB integrations to make sure you're setting the scheme suffix correctly.



Related Topics



Leave a reply



Submit