google-plus

No data returned in intent while using Google+

懵懂的女人 提交于 2019-12-22 05:26:39
问题 I am working on an android application. I require following: 1.Post something on google plus. 2.After sometime I want to count +1's and total shares of my post. I am doing it like this( as suggested in samples given in android sdk ) String action = "/?view=true"; Uri callToActionUrl = Uri.parse(getString(R.string.plus_example_deep_link_url) + action); String callToActionDeepLinkId = getString(R.string.plus_example_deep_link_id) + action; // Create an interactive post builder. PlusShare

Google plus sign in button not rendered when online

牧云@^-^@ 提交于 2019-12-22 05:23:23
问题 I'm developing a community site for my new mobile game and I'm trying to add the google plus sign in flow to it. Steps taken during implementation: -> Followed this google developers tutorial HTML button code: <span id="signinButton"> <span class="g-signin" data-callback="onSignInCompleted" data-clientid="<myID>.apps.googleusercontent.com" data-cookiepolicy="single_host_origin" data-requestvisibleactions="http://schemas.google.com/AddActivity" data-scope="https://www.googleapis.com/auth/plus

Google OAuth2 - access token & refresh token -> invalid_grant/Code was already redeemed

余生长醉 提交于 2019-12-22 05:13:13
问题 My goal is to have some kind of long lived access token so that my Android app can read the events of a user's Google Calendar for the day without requiring user approval every time. I am able to generate -- what I think is -- a one-time authorization code; however, when I send this to my server side, app engine, I get the following error response: 400 OK { "error" : "invalid_grant", "error_description" : "Code was already redeemed." } That is the exception that is being thrown. I'm just

G+ Login Immediately Logs Me out 3x Using g-signin Button

喜夏-厌秋 提交于 2019-12-22 04:30:16
问题 My code in HEAD is: <meta name="google-signin-clientid" content="XXXXXXX.apps.googleusercontent.com" /> <meta name="google-signin-cookiepolicy" content="single_host_origin" /> <meta name="google-signin-approvalprompt" content="auto" /> <meta name="google-signin-callback" content="signinCallback" /> <meta name="google-signin-scope" content="https://www.googleapis.com/auth/games" /> Here is my button code: <span id="signinButton"><span class="g-signin"></span></span> Here is the JavaScript:

Creating GoogleApiClient for multiple activities

狂风中的少年 提交于 2019-12-22 04:08:24
问题 I am developing an android app with Google+ API. I am having multiple activities which each require one instance of GoogleApiClient. As I understand from this post it is possible to call the same instance of GoogleApiClient for each activity. My question is how do we create copies of the GoogleApiClient specifically? Do we build one again with the .addApi(), .addscope() and implement onConnected method and OnConnectedFailedListener method again? Because it seems repetitive and inefficient.

Strange JSON response in Google Plus

倾然丶 夕夏残阳落幕 提交于 2019-12-22 04:06:44
问题 While I was debugging an error in Google Plus (while importing FB contacts from Yahoo) I've discovered strange JSON response: )]}' [[["er",,,,,500] ,["e",2,,,57] ],'45932b7d6d6dc08e'] Is it some variation of JSONP? Reminds me of an SQL injection rather... So, what's the purpose of the closing brackets and quote at the beginning? 回答1: It's basically JSON with nulls removed and the garbage added at the beginning to thwart XSRF. Here's some PHP code that will decode it (from an unofficial Google

Google Plus 21-digit URL Number Relationship to a Google Place's ID and Reference Numbers

ε祈祈猫儿з 提交于 2019-12-21 21:39:35
问题 What is the relationship between a Google Place's ID and Reference Number and the same Place's 21-digit Google Plus number used in the Place's Google Plus URL? I want to link Google Plus URLs for 100's of different businesses to my website. However, I do not know the Google Plus URL address for each of the businesses. But I do know the Google Place ID and Reference Number for each of the businesses. Can I derive the 21-digit Google Plus Number for a business from their Google Places ID and

How to sign in users to Firebase with Google Plus Sign-In

做~自己de王妃 提交于 2019-12-21 21:27:24
问题 I like to use Google Plus Sign for authentification in FireBase. The signinCallback of Google Plus returns a auth object. How can I use this information to sign in my users securely to FireBase? Auth auth object looks like: access_token: "ya29.2342324234" authuser: "0" client_id: "23ss4443234" code: "4/tLijpRBvHp9hDNc-hcZk00bqvpz4.2342342" cookie_policy: "single_host_origin" expires_at: "136334897186" expires_in: "3600" g-oauth-window: Window g_user_cookie_policy: "single_host_origin" id

Unable to load font: Roboto-Regular after updating to new Google+ SDK

允我心安 提交于 2019-12-21 20:39:52
问题 After updating to new Google+ sdk get an error NSBundle(GPP3PAdditions) gpp_registerFonts]_block_invoke() Unable to load font: Roboto-Regular If someone got the same? thanks 回答1: Add "GooglePlus.bundle" file to your project from Google iOS Sdk. 回答2: Yes it is helpfull thank you very much!!! Also if anyone using CocoaPods please see here it also will help GooglePlus with CocoaPods linking error add ${inherited} to Other Linker Flags 回答3: Here is the solution. Get the fonts from finder and copy

When should I disconnect GoogleApiClient (Android)

跟風遠走 提交于 2019-12-21 20:29:09
问题 In my android app, I have 3 login options. Google+, Facebook, and my own login option. I've implemented all 3. I've implemented Google+ login using the steps outlined here. Server side access is enabled. I get the one time authorization code and pass it to my own api. Once I've received the authorization code, is there any reason to keep GoogleApiClient connected? I have a similar question for Facebook Session here. 回答1: There is no reason to keep connected to the GoogleApiClient unless you