Facebook SDK: app not registered as a URL Scheme
Follow these three steps:
- Create a key called FacebookAppID with a string value, and add the app ID there.
- Create a key called FacebookDisplayName with a string value, and add the Display Name you configured in the App Dashboard.
- 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:
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.
- Go to
Targets > Build Setttings
and adduser-defined setting
.
Then, I set my user-defined values(FB_SCHEME
) to staging
for staging
build and vice versa.
- In my
App-info.plist
file. I set myFacebookURLSchemeSuffix
andURL scheme
to the following:
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
How to Get Commoncrypto/Commoncrypto File From
How to Make the View Update Instant in Swiftui
Scrolling Slow on Mobile/iOS When Using Overflow:Scroll
How to Bring Application to Foreground in iOS
Get Random Child from Firebase Database
Uiview Vertical Flip Animation
Swift: How to Get Substring from Start to Last Index of Character
Refresh Uipageviewcontroller - Reorder Pages and Add New Pages
Disable Swipe Back Gesture in Swift
Avaudioplayer Throws Breakpoint in Debug Mode
Wireless iPhone App Distribution - Problem with Itms-Services Protocol
Querying iOS Keychain Using Swift
Uikeyboardframebeginuserinfokey & Uikeyboardframeenduserinfokey
How to Print Core Data Debug Values
Convert String to Nsurl Is Return Nil in Swift