I'm using both Google+ and Facebook in my app. My problem is that both of them require the OpenURL method in the appDelegate.
For Facebook login:
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
}
For Google+ login:
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
return GPPURLHandler.handleURL(url, sourceApplication: sourceApplication, annotation: annotation)
}
How can I use both google+ and facebook in the same app?
Solution Updated for Xcode 7.0 and Swift 2.0
**
Swift 3.0 another solution
**
I found a solution, use this bit of code: