5
を私はFacebookのボタンでログインをクリックすると、これは二回、コンソールに表示さに気づきます。他のトピックで見つかったが、それでも同じエラーが出るように私は私のplistにこれを追加した
- (IBAction)loginWithFacebook:(id)sender {
// Set permissions required from the facebook user account
NSArray *permissionsArray = @[ @"user_about_me", @"user_relationships", @"user_birthday", @"user_location"];
// Login PFUser using Facebook
[PFFacebookUtils logInWithPermissions: permissionsArray block:^(PFUser * _Nullable user, NSError * _Nullable error) {
if (!user) {
NSLog(@"Uh oh. The user cancelled the Facebook login.");
} else if (user.isNew) {
NSLog(@"User signed up and logged in through Facebook!");
} else {
NSLog(@"User logged in through Facebook!");
}
}];
}
:
-canOpenURL: failed for URL: "fbauth2://" - error: "This app is not allowed to query for scheme fbauth2"
は、ここに私のコードです。 、あなたはiOSのSDK 9.0で再コンパイルしている場合
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb991863067537019</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>991863067537019</string>
<key>FacebookDisplayName</key>
<string>Ziplyne</string>
<key>NSAppTransportSecurity</key>
<dict>
<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>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
は、あなたが言ったようにそれを変更し、まだ同じ問題に実行されています。奇妙な私の投稿への編集を参照してください。 Jamie22 U @ – Jamie22
は、次のことを試すことができます:1)深いURプロジェクトをきれいにし、再構築、2))のOpenURL 3を扱うappleDelegateをチェックウルFacebookのSDKのバージョン番号を確認してください:)それが動作を期待します – Breek