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
?
In terms of raw keys and values you should have CFBundleURLTypes and CFBundleURLSchemes. Hope that helps!
there is another section below the info - URL Types
check that the values there, under the URL Schemes field match the value in the URL types -> URL Schemes in the property list above. (and also match the FacebookAppID)
For iOS 9
If you have an error: 'LSApplicationQueriesSchemes'
Based on Bear with me answer, you will also have to add those lines:
See this.
You should end up with those lines at the end of your .plist files:
* If you're using v4.6.0 or higher of the SDK, you only need to add:* (Thanks mohsinj)