fbsdkloginkit

App crashes using Facebook Login SDK when I go to the home screen

放肆的年华 提交于 2019-12-21 10:12:06
问题 I originally downloaded the FBSDK's version 4.10 and integrated them into my application by placing them in the frameworks folder. Realizing that these would not get updated over time, I removed them completely and tried to add them as pods to my project. The pods installed successfully, I have imported them correctly in my bridging header file, and there were no other issues. The pods update installed version 4.11 which has caused me some headache. I am using the FBSDKLoginKit to log a user

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

风格不统一 提交于 2019-12-19 11:17:07
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

孤人 提交于 2019-12-19 11:17:01
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

How to check if user is logged in with FBSDKLoginKit in iOS?

本秂侑毒 提交于 2019-12-10 23:23:52
问题 When I run the app in viewDidLoad I need to check if user was logged in before or not. if FBSDKAccessToken.currentAccessToken() != nil { print("1") presentViewController(controller, animated: true, completion: nil) } else { print("2") let button = FBSDKLoginButton() button.delegate = self button.readPermissions = ["public_profile", "user_friends"] view.addSubview(button) } It always prints "2" . Why? 回答1: Below two methods must be implemented in AppDelegate : func application(application:

No Such Module 'FBSDKLoginKit' Xcode 9

喜你入骨 提交于 2019-12-07 18:50:28
问题 Using CocoaPods, I have imported the below frameworks: platform :ios, '11.0' use frameworks! target '{APP NAME}' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/AdMob' pod 'Firebase/Messaging' pod 'Batch' pod 'FBSDKLoginKit' pod 'FBSDKCoreKit' pod 'Google-Mobile-Ads-SDK' end When I build my project, it runs happily on my iPhone with no errors. When I try to create an Archive of the project, it shows one of the below and refuses to build the

No Such Module 'FBSDKLoginKit' Xcode 9

末鹿安然 提交于 2019-12-06 07:59:58
Using CocoaPods, I have imported the below frameworks: platform :ios, '11.0' use frameworks! target '{APP NAME}' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/AdMob' pod 'Firebase/Messaging' pod 'Batch' pod 'FBSDKLoginKit' pod 'FBSDKCoreKit' pod 'Google-Mobile-Ads-SDK' end When I build my project, it runs happily on my iPhone with no errors. When I try to create an Archive of the project, it shows one of the below and refuses to build the project to Archive. No such module 'FBSDKCoreKit' No such module 'FBSDKLoginKit' I have no idea what I'm

App crashes using Facebook Login SDK when I go to the home screen

喜你入骨 提交于 2019-12-04 04:16:35
I originally downloaded the FBSDK's version 4.10 and integrated them into my application by placing them in the frameworks folder. Realizing that these would not get updated over time, I removed them completely and tried to add them as pods to my project. The pods installed successfully, I have imported them correctly in my bridging header file, and there were no other issues. The pods update installed version 4.11 which has caused me some headache. I am using the FBSDKLoginKit to log a user into their account and retrieve information from that. I am able to get back a dictionary with the

FBSDK empty login view

拥有回忆 提交于 2019-11-30 20:56:16
Since upgraded to the newest Xcode, I ran into some issues with FBSDK while trying to login via FBSDKLoginManager . The login window in Safari pops up but it stays white (empty view), without either navigation items or content. Console returns the following: [ViewService] Failed to get remote view controller with error: Error: domain=_UIViewServiceInterfaceErrorDomain, code=2 I just cleared History and Website data of safari in settings and now it works.I thinks this is something related to SFSafariViewController. Hope it helps! Yesterday evening it used to work in my app, today is not working

FBSDK empty login view

会有一股神秘感。 提交于 2019-11-30 17:18:15
问题 Since upgraded to the newest Xcode, I ran into some issues with FBSDK while trying to login via FBSDKLoginManager . The login window in Safari pops up but it stays white (empty view), without either navigation items or content. Console returns the following: [ViewService] Failed to get remote view controller with error: Error: domain=_UIViewServiceInterfaceErrorDomain, code=2 回答1: I just cleared History and Website data of safari in settings and now it works.I thinks this is something related