0

Facebookモジュールを認証しようとするとFacebookモジュールがクラッシュする。私はコードを見続けるが、私はエラーを見つけることができない。私はAppcelerator guideに従う誰でもエラーが見つかりましたか?前もって感謝します。Titanium 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 

これは、これはどうやら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> 

答えて

0

のIOSのセクションで私のindex.jsにおけるFacebookのコード

var fb = require('facebook'); 
fb.setLoginBehavior(fb.LOGIN_BEHAVIOR_NATIVE); 
fb.permissions = ["public_profile","email"]; 
fb.authorize(); 

ですこれは欠けていた。認可のためにこれを必要とすることについての文書はあまり明確ではない。

<key>LSApplicationQueriesSchemes</key> 
<array> 
    <string>fbapi</string> 
    <string>fb-messenger-api</string> 
    <string>fbauth2</string> 
    <string>fbshareextension</string> 
</array> 
0

tiapp.xmlにLSApplicationQueriesSchemesがありません。

<key>LSApplicationQueriesSchemes</key> 
<array> 
    <string>fbapi</string> 
    <string>fb-messenger-api</string> 
    <string>fbauth2</string> 
    <string>fbshareextension</string> 
</array> 

しかし、あなたはまだいくつかのデバイス上でユーザデータを受信/ログの問題に直面する場合は(FacebookのSDKが示唆するように)すべての文字列を追加しよう: ドキュメントは、これらの文字列について語る

<string>fbapi</string> 
<string>fbapi20130214</string> 
<string>fbapi20130410</string> 
<string>fbapi20130702</string> 
<string>fbapi20131010</string> 
<string>fbapi20131219</string> 
<string>fbapi20140410</string> 
<string>fbapi20140116</string> 
<string>fbapi20150313</string> 
<string>fbapi20150629</string> 
<string>fbapi20160328</string> 
<string>fbauth</string> 
<string>fbauth2</string> 
<string>fb-messenger-api20140430</string> 
関連する問題