Facebook SDK:应用程序未注册为 URL Scheme [英] Facebook SDK: app not registered as a URL Scheme
问题描述
我正在使用在
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
?
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:
这篇关于Facebook SDK:应用程序未注册为 URL Scheme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!