google-plus

Android - Google+ share status fails

不羁的心 提交于 2019-12-21 17:48:17
问题 I went over the Google's description on how to share status from my Android app to Google+: https://developers.google.com/+/mobile/android/share/ (I'm doing an example app that does exactly what they do in the example) I'm getting this exception: Process: com.google.android.gms.ui, PID: 19643 java.lang.IllegalArgumentException at com.google.k.a.aj.a(SourceFile:72) at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:63) at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:53

Android google+ login in a fragment

假装没事ソ 提交于 2019-12-21 14:59:07
问题 Currently I am trying to implement google+ login using fragment so I can use it from different activities. I have created fragment like this public class GoogleSignUpFragment extends Fragment implements ConnectionCallbacks, OnConnectionFailedListener, OnClickListener { // PlusClient Variables private static final int REQUEST_CODE_RESOLVE_ERR = 9000; private ProgressDialog mConnectionProgressDialog; private PlusClient mPlusClient; private ConnectionResult mConnectionResult; @Override public

How can I get email address from Google Plus API once i got the token

余生长醉 提交于 2019-12-21 13:12:11
问题 I have got accesstoken using oauth2.0. I am able to get the person name, gender, etc but I am not able to get the email address of the user. Could any one please paste some sample code or any suggestions on how to get the email address from the google plus API? 回答1: You can retrieve a user's email address if they specifically authorize your application to see their email address. Set your scopes to: https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email The

How can I get email address from Google Plus API once i got the token

99封情书 提交于 2019-12-21 13:11:16
问题 I have got accesstoken using oauth2.0. I am able to get the person name, gender, etc but I am not able to get the email address of the user. Could any one please paste some sample code or any suggestions on how to get the email address from the google plus API? 回答1: You can retrieve a user's email address if they specifically authorize your application to see their email address. Set your scopes to: https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email The

Detect iOS Google+ Sign In was incomplete.

余生长醉 提交于 2019-12-21 07:27:21
问题 By "incomplete" I'm referring to a particular user journey user opens iOS application, and chooses Google+ to sign in. Google SDK navigates user to G+ application for sign in (or webview if G+ not installed). user navigates away from Google+ (tapping home button for instance) without accepting or denying permissions requested. user navigates back to iOS application. Using Facebook SDK, when application becomes active, the sign in session is closed if the user follows similar journey via the

Google Plus can't post a moment

浪子不回头ぞ 提交于 2019-12-21 06:38:28
问题 After Google authorization I try to post a moment without any confirmations: GTMOAuth2Authentication *auth; auth = [GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:TMH_SOCIAL_GOOGLE_KEYCHAIN clientID:TMH_SOCIAL_GOOGLE_CLIENTID clientSecret:TMH_SOCIAL_GOOGLE_SECRET]; if ([auth canAuthorize]) { NSString *postString = @"{\"type\":\"http:\\/\\/schemas.google.com\\/AddActivity\",\"target\":{\"id\":\"tmhabc\",\"type\":\"http:\\/\\/schemas.google.com\\/AddActivity\",\"description\":\

Access token Google+

六月ゝ 毕业季﹏ 提交于 2019-12-21 06:19:45
问题 I'm experiencing few issues with the new-released Google+ API to retrieve an access token... I have been following the documentation, I got a Code ("4/blablabla") but when I send the POST request to get an access token, I get a "(400) Bad Request" response... Here is my piece of code : // We have a request code, now we want an access token StringBuilder authLink = new StringBuilder(); authLink.Append("https://accounts.google.com/o/oauth2/token"); authLink.AppendFormat("?code={0}", gplusCode);

Access token Google+

佐手、 提交于 2019-12-21 06:19:07
问题 I'm experiencing few issues with the new-released Google+ API to retrieve an access token... I have been following the documentation, I got a Code ("4/blablabla") but when I send the POST request to get an access token, I get a "(400) Bad Request" response... Here is my piece of code : // We have a request code, now we want an access token StringBuilder authLink = new StringBuilder(); authLink.Append("https://accounts.google.com/o/oauth2/token"); authLink.AppendFormat("?code={0}", gplusCode);

Getting videos(non-local) from the Google Photos App

一个人想着一个人 提交于 2019-12-21 05:26:07
问题 With the Google Photos app , I am trying to pick a video, that is not cached on the device. I am using the ACTION_GET_CONTENT intent, to launch the options dialog, and from there I choose the Google Photos app. While selecting local videos, it returns an Uri in this form. content://media/external/video/media/6708 And from that, I query the content provider to retrieve the actual file location, and proceed from there. The file location looks like this. /storage/emulated/0/WhatsApp/Media

Appengine Cloud Endpoints with new Google+ sign-in

泪湿孤枕 提交于 2019-12-21 04:52:34
问题 How does the new google+ sign-in apis fit into making authenticated calls to Cloud Endpoints. To use OAuth with endpoints the app must request permission for the 'https://www.googleapis.com/auth/userinfo.email' scope at a minimum. Will using the Google+ sign-in button grant this scope? Or am I going to have to ask my users for yet another permission?? 回答1: The Google+ sign-in button has a "scopes" attribute that you can list additional scopes that you would like to request. You can list the