I am using the Facebook SDK
found here, and am trying the sample that is provided (in the folder FacebookiOSSample
).
If I simply replace the AppId
here with my specific AppId
, then I can no longer Share. (I replaced it in both the AppDelegate
file and the info.plist
file). I now receive the following error:
FBSDKLog: Invalid use of FBAppCall, fb**** is not registered as a URL Scheme. Did you set 'FacebookUrlSchemeSuffix' in your plist?
Otherwise this works fine with the sample's original AppId
which points to something named IFaceTouch
.
What could be wrong with the setup of my app, how do I register my AppId
?
Go to this Link Select Your App, And configure your
info.plist
Today i solved this bug by just removing space from FacebookDisplayName.
make sure you don't have any space in FacebookDisplayName
1- In Xcode, right-click your project's Info.plist file and select Open As -> Source Code.
2- Insert the following XML snippet into the body of your file just before the final
</dict>
element.3- Replace {your-app-id}, and {your-app-name} with your app's App's ID and name found on the Facebook App Dashboard.
I was also facing same issue. Then did this:
<dict> <key>CFBundleURLSchemes</key> <array> <string>fb154510174913175</string> <string>fbauth2</string> // add this line to remove the error </array> </dict>
and issue is fixed now.
Follow these three steps:
The finished .plist should look something like this:
Source Link:
I don't know if your problem is the same as mine. But it took me some time to find it and i will put it here so that it can help anyone.. The problem was that google sign in used the same info.plist attribute name and it was overriding the ones of facebook.. So i could see this in X-Code and put them together, now everything works fine! (URL Types attribute).