फेसबुक + के साथ प्रवेश करने का प्रयास कर निम्नलिखित कोड का उपयोग कर पार्स करें:फेसबुक लॉग इन मुद्दा iOS9 + पार्स
मैं जब फेसबुक बटन के साथ लॉगिन इस दो बार कंसोल में दिखाई देता है पर क्लिक नोटिस।
- (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!");
}
}];
}
मैं जैसे अन्य विषयों में पाया, लेकिन अभी भी एक ही त्रुटि मिलती है मेरी plist को यह जोड़ लिया है:
-canOpenURL: failed for URL: "fbauth2://" - error: "This app is not allowed to query for scheme fbauth2"
यहाँ मेरी कोड है।
<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
@ जेमी 22 आप निम्नलिखित कोशिश कर सकते हैं: 1) अपने फेसबुक एसडीके संस्करण # 2 की जांच करें, 2) सेब डिलीगेट की जांच करें जहां openURL 3 को संभालती है) गहरी साफ यूआर प्रोजेक्ट और पुनर्निर्माण :) उम्मीद है कि यह काम करता है – Breek