我在嘗試授權Facebook模塊時遇到Facebook模塊崩潰。我一直在查看代碼,但我似乎無法找到錯誤。我遵循Appcelerator guide任何人都可以看到任何錯誤?提前致謝。從控制檯鈦Facebook模塊5.1.0在授權時崩潰
[ERROR] : The application has crashed with an uncaught exception 'InvalidOperationException'.
[ERROR] : Reason:
[ERROR] : fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0
這
錯誤是我index.js Facebook的代碼
var fb = require('facebook');
fb.setLoginBehavior(fb.LOGIN_BEHAVIOR_NATIVE);
fb.permissions = ["public_profile","email"];
fb.authorize();
這是的Tiapp.xml
<ios>
<enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
<default-background-color>#3AB6ED</default-background-color>
<plist>
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb55458225139xxxx</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>55458225139xxxx</string>
<key>FacebookDisplayName</key>
<string>Fluid - Borrow it</string>
<key>UISupportedInterfaceOrientations~iphone</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UIRequiresPersistentWiFi</key>
<false/>
<key>UIPrerenderedIcon</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>
Using the user location to determine the neighborhood they are in to lend and borrow items.
</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
</dict>
</plist>
</ios>