I tried to integrate Facebook/Google+ in my app. I can do that by the inbuilt Facebook framework, Google Plus framework, Google open source framework, in iOS app by getting the details from the account added in settings app of the device. I can also do it by opening the Safari browser and redirect to my app after login to Facebook and Goolge+. so, I need without redirect the Safari browser.
Using new Google+ SDK, user will not have to reenter the password in safari or any browser. Take a look on this: https://developers.google.com/+/mobile/ios/sign-in
If the user has the native Google or Google+ mobile app installed then user will not have to re-enter their Google credentials to authorize your app.
OR
Try with GTMOAuth2ViewControllerTouch
- (id)initWithScope:(NSString *)scope
clientID:(NSString *)clientID
clientSecret:(NSString *)clientSecret
keychainItemName:(NSString *)keychainItemName
completionHandler:(GTMOAuth2ViewControllerCompletionHandler)handler
Plenty of references available online. Google Drive iOS SDK: Display Cancel Login Button
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With