iOS Google Plus API - Sharing or Logging In without going to Safari

google-api, google-plus, ios, iphone

Solution

You can SignIn via Google+ into UIWebView.

 GTMOAuth2ViewControllerTouch *_googlePlusCtrl = [[GTMOAuth2ViewControllerTouch alloc]
                                                   initWithScope:@"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me"
                                                   clientID:GOOGLE_PLUS_CLIENT_ID
                                                   clientSecret:GOOGLE_PLUS_CLIENT_SECRET
                                                   keychainItemName:@"GooglePlus_Sample_App"
                                                   delegate:self
                          finishedSelector:@selector(viewController:finishedWithAuth:error:)];

Hope this will help you.

Problem

So far everything I've found on the subject, is a NO. My app works fine when the user logs in and shares, but both actions require mobile safari, which is a less than ideal experience for the user, has anyone found a way to either share a post or log in to Google + using a UIWebView or GET/POST?. Any help will be greatly appreciated. Thanks.

Original source