google-plus

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

烂漫一生 提交于 2019-12-04 06:34:21
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? 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 JavaScript calls look like this: gapi.client.load('oauth2', 'v2', function() { gapi.client.oauth2.userinfo

Login to Google without Google+ login button but user credentials

邮差的信 提交于 2019-12-04 06:27:19
问题 I have a specific problem, the application is only for a set of people whose Google credentials are on my server. I make a login to my server, look-up the Google credentials and send them back and Create an OAuth authentication to interact with Google services. (Because I don't want the app to be device specific I want to use accounts other than those registered on my device, which completely fails in a G+ sign in mechanism) Currently I use a Deprecated Client ID mechanism wherein I pass the

Deprecated Plus.PeopleApi.load

 ̄綄美尐妖づ 提交于 2019-12-04 05:51:37
Now that Plus.API is deprecated in Google Play Services 9.4 , what is correct way to get Google Plus circles for authenticated user on Android Application? Now We have deprecated method of loading plus users Plus.PeopleApi.load New documentation says: If your app needs social information and more extensive profile data, check out the Android Contacts Provider or the cross-platform People API. So I should go with Android Contacts Provider that seems to be a hard alternative (Because I have to filter contacts with cursors and also manage Runtime Permissions). Any easy alternatives of previous

onActivityResult code for both Facebook and Google+ Login in Android

。_饼干妹妹 提交于 2019-12-04 05:21:48
The Facebook API code for login in Android is simple, with the method onActivityResult is protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); callbackManager.onActivityResult(requestCode, resultCode, data); } The documentation from Google says the code for the same method must be @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Log.d(TAG, "onActivityResult:" + requestCode + ":" + resultCode + ":" + data); if (requestCode

Can't publish a Hangout app (extension)

心已入冬 提交于 2019-12-04 04:49:22
I've created a Google Hangout extension app, tested it works privately etc and now I'm trying to publish it. I have followed the instructions here: https://developers.google.com/+/hangouts/publishing I've filled in the forms correctly, created the O-Auth client ID, filled out the consent form etc. When I tick the Make this application public tickbox and try to save, a server error message pops up along the lines of: Server Error Whoops! Our bad. Please try again. If the problem persists, please let us know using the "Send feedback" link below. Thanks! Tracking Number: XXXXXXXXXXXXXXXXXXXXXXXXX

iOS: Using both Facebook and Google, Google Plus sign in

元气小坏坏 提交于 2019-12-04 04:25:04
Good morning, I'm trying to implement the Facebook login (which is working fine) and also the google plus login in the same view. I'm following the guides from the official site (Google) but there is an issue between the Facebook button and the google plus button: Facebook tells me to put the following code: -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication]; } And also Google tells me to put the following: - (BOOL)application:

set text to google+ share button

妖精的绣舞 提交于 2019-12-04 04:14:11
I'm creating a page which has a g+ share button, but I wanted to dynamically change the description of the content to share. to customize the share button I am using the snippet with Open Graph protocol. The solution I tried was the following, but it did not work correctly: <meta property="og:title" content="O Fabuloso Gerador De Lero Lero v3" /> <meta property="og:image" content="images/robot.png" /> <meta property="og:description" content="..." /> $('meta[property="og:description"]').attr('content',text); var shareButtons = $('div:first','section.share-buttons'); shareButtons.html('');

Android Google+ unable to get auth code

二次信任 提交于 2019-12-04 04:05:47
I'm trying to get a Google+ auth code based on this article: Server-side access for your app . However, whenever I run my app and try to get the code I get the following in LogCat: 07-23 23:42:31.760: E/getAccessToken()(11114): [ERROR] GoogleAuthException: com.google.android.gms.auth.GoogleAuthException: Unknown I browsed a lot of stuff and from what I can tell I have everything setup correctly in the code below. Any ideas why it's not getting an auth token? FYI, I have one project setup in the API console that has both the app and web applications configured for oauth and I'm using the server

Class “Google_Config” not found

两盒软妹~` 提交于 2019-12-04 03:23:09
问题 I'm trying to implement Google's login API via the instructions here, but for some reason, when I try to run it, I always get: Fatal error: Class 'Google_Config' not found in /home/.../Google/Client.php on line 76 I'm quite sure I linked to Client.php correctly - I don't think it's a problem within my own code. Does anyone know what might be happening here? Thanks! 回答1: This error means that you didn't use Composer, to install the client. Without Composer, in your script you should set

Android-Sign in via Google plus “An internal error has occured”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 03:11:27
问题 I have some problem which this link talk about: "An internal error occurred" with integration of Google Plus Login and this link: Google plus client "An internal error occured" but the latest one not usful for me, in the first link somebody suggest this solution: This can happen when you haven't set the signature for the client ID in your API console project, or if you copied the wrong key value from keytool but I set the signature for the client ID as the instructions in this link: https:/