google-plus

Android Google Plus getCurrentPerson returns null

社会主义新天地 提交于 2019-12-10 13:28:19
问题 When I'm calling plusClient.getCurrentPerson() I am getting NULL. Method onConnected(Bundle...) called after a successful login: @Override public void onConnected(Bundle bundle) { if (plusClient.getCurrentPerson() == null) { Log.e("DD", "Person is null !"); } } I have added SHA1 directly from eclipse (Window->Preferences->Android->Build). I don't know what I am doing wrong! SHA1 fingerprint from Eclipse ADT Client ID for installed applications Simple API access 回答1: In my case I forgot to

Is there an existing Google+ API? [duplicate]

冷暖自知 提交于 2019-12-10 13:27:19
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is there already a Google+ API? Is there an existing Google+ API ? I would like to know if it is possible to access the "Feed" with API like done with Facebook ... 回答1: EDIT: There is now a Google+ API http://developers.google.com/+/api/ Old post: No, the API is not yet available. http://www.readwriteweb.com/hack/2011/06/google-plus-puts-out-a-call-for-developers.php 回答2: I think that you'll find this article a

Cordova Android App Google Plus Authentication Error 10

狂风中的少年 提交于 2019-12-10 12:19:16
问题 I want to use google plus authentication in my cordova app. 1. Generate keystore keytool -genkey -v -keystore <keystoreName>.keystore -alias <Keystore AliasName> -keyalg <Key algorithm> -keysize <Key size> -validity <Key Validity in Days> 2. Create android release version cordova build android --release 3. Sign My Apk jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <keystoreName>.keystore android-release-unsigned.apk <alias> 4. Optimize my APK zipalign -v 4 android-release

Is it possible to post on google plus directly without additional share dialog on web

ぃ、小莉子 提交于 2019-12-10 12:04:00
问题 Is there any way to post directly on google Plus without extra share on web, Now i am successfully posting on google Plus, every time i do like below, but id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]; // do additional stuff like filling the text message to "shareBuilder" ... ... //after this [shareBuilder open]; //this leads to open web page where google provides its own share button what my problem is, i want to post directly on google plus by bypassing this web

ConnectionResult.getErrorCode() = 4

喜夏-厌秋 提交于 2019-12-10 11:55:10
问题 Here I am doing Google+ integartion. I am using the following code but I am facing the error which is : onConnectionFailed: ConnectionResult.getErrorCode() = 4 . So please anybody help me and tell me what I am doing wrong in this code and provide me the solution for this. I will be very thankful to you. I searched a lot but found nothing. I am using the quick sample of Google plus. 回答1: According to https://developers.google.com/+/quickstart/android you get error code = 4, if you have not

Post in Google+ stream is not showing up in user's stream using google-api-PHP-client

爱⌒轻易说出口 提交于 2019-12-10 11:54:27
问题 I'm trying to post in a user's Google+ stream, and I'm trying it using the google-api PHP client. Until now, I've been able of configure a test environment using the latest google-api PHP client and an example script (See 401 Unauthorized access when posting Google+ Moments with PHP Client for more information). It looks like it posts, because it returns an array with the answer, but nothing shows up in the user stream. The answer array is: Array ( [kind] => plus#moment [type] => http:/

How to create a new post on Google+ via javascript API?

我们两清 提交于 2019-12-10 11:53:15
问题 I move with the Google+ API for a while now but I have noticed that some sites that create posts in our profile with Google api in a different way. A regular posting, a box would pop up Google+ to share, but this site https://bufferapp.com/ can share a post show cash Google+. Could someone help me with this? 回答1: You cannot programatically share a post to a Google+ user's stream with any of the public APIs. Any attempts to post without the user initiating the post are not allowed by the

google Plus Login Failed error code 17 android

元气小坏坏 提交于 2019-12-10 11:49:10
问题 I am getting error of google Plus Login Failed error code 17 while using the release apk. In debug apk it is working. not able to figure it out the proper error and solution.Even error message is null. @Override public void onConnectionFailed(ConnectionResult result) { Log.e(TAG, "Google plus login failed : onConnectionFailed"); if (!mIntentInProgress && result.hasResolution()) { try { mIntentInProgress = true; mActivity.startIntentSenderForResult(result.getResolution() .getIntentSender(),

Getting Google Play services signature invalid

眉间皱痕 提交于 2019-12-10 11:48:26
问题 I am trying to integrate Google plus login in my application, I am following this guide for the same: https://developers.google.com/+/mobile/android/getting-started Everything is setup properly except when I run the application I get the "Google Play services signature invalid" I think the problem is in the SHA1 key I am generating, however I have done it as it has been described in the above document. I am unable to gauge the problem. Any hints? I am also attaching the screen shot of how I

How to logout from Google+ Account?

别来无恙 提交于 2019-12-10 11:03:27
问题 After signin up with Google plus on an Android app. How can I logout, so I can sign in with another account. Don't know if GoogleAuthUtil.invalidateToken is the answer or not... Thanks 回答1: If you are using Google+ sign in (and you should - the work flow is much better, both for developers and users), then you can sign out the user by following the guide's example: @Override public void onClick(View view) { if (view.getId() == R.id.sign_out_button) { if (mPlusClient.isConnected()) {