Failed to successfully update network information during initialization Xcode error

I was struggling with this next program execution which I am currently doing in Xcode 8 and Swift 3 ... it is just a simple login program, but whenever the app launches the console it just prints the error "Failed to update network info successfully during initialization "even before the login button was pressed and the solutions are very small and none of them worked for me.

import UIKit
import FBSDKCoreKit
import FBSDKLoginKit
class ViewController: UIViewController, FBSDKLoginButtonDelegate {
    @IBOutlet weak var btnButton: FBSDKLoginButton!     
    override func viewDidLoad() {
     super.viewDidLoad()
                 // Do any additional setup after loading the view, typically from a nib.
    }
 override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
func loginButton(_ loginButton: FBSDKLoginButton!, didCompleteWith result: FBSDKLoginManagerLoginResult!, error: Error!)
        {
                if error == nil
                {
                   print("login Successful")
                   self.configureFacebook() 
                }
                else
                {
                    print("error\(error!)")
                }
               }
func loginButtonDidLogOut(_ loginButton: FBSDKLoginButton!)
        {
            let loginManager: FBSDKLoginManager = FBSDKLoginManager()
            loginManager.logOut()
            print("logout successful")    
        }
func configureFacebook()
        {
            btnButton.readPermissions = ["public_profile", "email", "user_friends"];
            btnButton.delegate = self         
    }
}

      

+3
ios xcode swift3


source to share


No one has answered this question yet

See similar questions:

12
Why can't the iOS app access the network?

or similar:

868
Xcode error "Could not find developer disk image"
805
Xcode 7 error: "Missing iOS Distribution Subscription ID for ..."
61
How to detect a cell of a tableView being touched or clicked in swift
21
Expand and collapse table cells
4
Facebook login - remains on the white SWIFT webpage
2
TableView does not display text with JSON data from API call
1
How to get cookie values ​​from WKWebView in Swift 4?
1
Facebook returns anything when recompiled from iOS9
1
Swift 2 iOS 9 animation disappears after changing button text
0
BMI app print result is 0 even if variable is hardcoded



All Articles
Loading...
X
Show
Funny
Dev
Pics