google-plus

How to get current location from Google+ API for Android?

一曲冷凌霜 提交于 2019-12-10 19:16:55
问题 I need to get current location from Google+ API for Android. I have done everything in Google API Console, and linked my app with client ID with SHA1 and package name. I successfully get almost data about user name, profile picture, cover picture, email... But I have problem with location. I can't get user location. I use this scope: mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this).addApi(Plus.API, null) .addScope(Plus

Error when trying to use Google OAuth 2.0 login hybrid flow (Google_IO_Exception' with message 'HTTP Error: Unable to connect: '0'')

人走茶凉 提交于 2019-12-10 19:03:06
问题 I'm trying to implement a "Sign-in using G+" button using the server-side hybrid flow and I keep getting the same error : Google_IO_Exception' with message 'HTTP Error: Unable to connect: '0' I have looked everywhere, tried everything, I can't fix it. I am using the latest version of Google PHP Client Library from GitHub (last updated on May 17th). I checked a zillion times if my client_id & client_secret were correct. Here's my code : set_include_path("C:\wamp\www\src" . PATH_SEPARATOR . get

Facebook and Google+ Sign-In

限于喜欢 提交于 2019-12-10 17:34:42
问题 I'm using both Google+ and Facebook in my app. My problem is that both of them require the OpenURL method in the appDelegate. For Facebook login: func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation) } For Google+ login: func application(application: UIApplication, openURL

G+ signin on android throws INVALID_CLIENT_ID

爱⌒轻易说出口 提交于 2019-12-10 17:29:21
问题 I am trying to implement G+ sign in, in our app, however, despite having repeatedly updating the client id, and recreating a new one as well, I keep on getting an error saying I/GLSUser﹕ GLS error: INVALID_CLIENT_ID myemail@domain.com oauth2:https://www.googleapis.com/auth/plus.login Not sure what's wrong. I can see the account list popup, and everything else seems to work as well. I have double checked my client id as well. [EDIT] Here is the code I am using private void getGoogleAccessToken

How can I get Twitter / Facebook / Google+ buttons to show up after loading page via ajax?

一个人想着一个人 提交于 2019-12-10 17:17:09
问题 I have a rails 3.1 application where I want to allow users to share items via Twitter, Google+ and Facebook (HTML5 version of the like button). I have it working great on the show page for the item (i.e. - just showing that one item), but I'm having issues on a container page that loads the items in a list via Ajax. I want to have separate share buttons next to each item in the container. The first time the page loads, the share buttons show up fine next to each item. It's only when I reload

Google+ JavaScript API: How to detect user sign in status?

荒凉一梦 提交于 2019-12-10 16:55:26
问题 I have deployed Google+ Sign-in Button, now I have to provide Sign-Out Button , before that, I need to know whether the user is still signed in, by which I can then show or hide this button. I found this documentation: gapi.auth.checkSessionState(sessionParams, callback) : https://developers.google.com/+/web/api/javascript?hl=en#gapiauthchecksessionstatesessionparams_callback Could someone demo how to use it ? Many thanks. 回答1: You don't need to use a separate function call to determine the

Removing the “\ufeff” from the end of object -> content in Google+ API json result

百般思念 提交于 2019-12-10 15:52:01
问题 The result from the Google+ API has \ufeff appended to the end of every "content" result (I don't really know why?) What is the best way to remove this unicode character from the json result? It is producing a '?' in some of the output I am displaying. Example: https://developers.google.com/+/api/latest/activities/get#try-it enter activity id z12pvrsoaxqlw5imi22sdd35jwvkglj5204 and click Execute, result will be: { ..... "object": { ...... "content": "CONTENT OF GOOGLE PLUS POST HERE \ufeff",

Getting google plus shares for a given URL in PHP

…衆ロ難τιáo~ 提交于 2019-12-10 15:15:39
问题 I want to get the number of shares on google plus for a given URL in PHP. I found this function to do that: function get_shares_google_plus($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]

iOS Google Plus integration and sharing

丶灬走出姿态 提交于 2019-12-10 13:46:46
问题 I am trying to share content from my app to Google Plus. To this end, I have used the following code: -(IBAction)handleGPlus{ id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog]; [shareBuilder setURLToShare:[NSURL URLWithString:@"http://dummy.com"]]; [shareBuilder setTitle:@"Some title" description:@"Some description" thumbnailURL:[NSURL URLWithString:@"http://dummy.com/image"]]; [shareBuilder setContentDeepLinkID:kClientId]; [shareBuilder open]; } And I have set up the

How to change email account on Concent screen of Google Cloud Console?

邮差的信 提交于 2019-12-10 13:44:45
问题 I am stuck. I have created this app for some time already. At that point I just used my account. Now I'd like present a user with a different email that corresponds to system support email. Is there a way to change it? UPDATE: please see my comment. It's all about currently logged in user, nothing else. 回答1: In order to change the email associated with your project, you must first add another account with the email you want set as the primary email to your owners. This is set in Permissions >