Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Facebook/Google+ without redirect Safari browser in iOS app

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.

like image 933
Santhosh Kumar Avatar asked Oct 19 '22 11:10

Santhosh Kumar


1 Answers

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

like image 114
Tariq Avatar answered Oct 22 '22 01:10

Tariq