google-plus

iOS Google+ Safari cannot open page because address is invalid

笑着哭i 提交于 2019-12-18 14:13:12
问题 I have two apps one is free and another is paid version. I have implemented google+ share on paid and its working fine. But when I copied code to my free version it doesn't work. I have one Google apis project and added two clients for both iOS apps. I get "Safari cannot open page because address in invalid" erro after sharing or cancel and it does not open my app. Please help I followed all steps defined at https://developers.google.com/+/mobile/ios/share#detecting_if_a_post_was_successfully

Save Map Instance outside of Google Maps

久未见 提交于 2019-12-18 13:48:23
问题 I've made a google maps API (HTML) script that created markers when the user clicks on the map. I've also integrated Google+ login functions so users are unique and have profiles. I now want to make it so users can create their markers on their desired positions and then save the map so they can come back to it later. I however don't want them to use this "https://developers.google.com/maps/documentation/javascript/examples/save-widget" provided function because then the markers are synched

How To Sign Out Using When Using Google+ Sign-In

余生颓废 提交于 2019-12-18 13:29:47
问题 Google documents there gapi.auth.signOut() method here: https://developers.google.com/+/web/signin/#sign-out The catch is that it says you can only call that method after the signinCallback has fired. So far as I can tell, the only way to fire the signinCallback is to put a sign-in button on the page. This works great on my sign-in page itself, but as soon as I've authenticated a user, there's no need to put the G+ sign-in button on subsequent pages. I just want to have a small 'log out' link

Google plus-one button on a page that is refreshed with AJAX

与世无争的帅哥 提交于 2019-12-18 13:14:18
问题 Is anyone aware of some code for Google's plus-one button that will work on a page that is refreshed with AJAX? It was very simple with Facebook, but I can't find any documentaion about this for Google. Thanks. 回答1: I was searching for this too and found this <!-- Place this tag in your head or just before your close body tag --> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {parsetags: 'explicit'} </script> <!-- Place this tag where you want the +1 button to

How to stop Google+ Sign-In Button from popping up the message “Welcome back, you've already connected with this app via Google+ Sign-In as …”

风格不统一 提交于 2019-12-18 11:26:28
问题 I'm adding Google+ sign in button to my site using the server-side flow. Here is how I render the sign in button: <script type="text/javascript"> (function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://plus.google.com/js/client:plusone.js?onload=renderGPlus'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <script type="text/javascript"> function renderGPlus() { gapi.signin

Accessing GoogleApiClient object in All Activities

大兔子大兔子 提交于 2019-12-18 10:55:24
问题 This seems like a simple thing that most people would need if they wanted to use Google Plus sign in with their application :s. In Activity 1: I sign the user in. After the sign in, I want to make that user object globally accessible, so I add it to the Application object: public class GlobalUserAccess extends Application { private GoogleApiClient mGoogleApiClient; public GlobalUserAccess(){ mGoogleApiClient = null; } public void setClient(GoogleApiClient client){ mGoogleApiClient = client; }

How does Google achieve animated posts in their G+ app?

六月ゝ 毕业季﹏ 提交于 2019-12-18 10:12:25
问题 I like the animation that occurs when scrolling through posts in the Google+ app, but I can't work out how they achieve it. What techniques are employed to animate posts as they appear? I'm not looking for the animation itself, just how I'd apply any animation to a list of scrollable items. Thanks. 回答1: After some testing I think I got something similar to work; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final LinearLayout list = new

401 Unauthorized access when posting Google+ Moments with PHP Client

南楼画角 提交于 2019-12-18 09:52:40
问题 I'm trying to post a moment in google+ using the API, creating a simple example, but I get a 401 error. I'm following Silvano Luciani steps from https://plus.google.com/+SilvanoLuciani/posts/2kMX9Dzaf8V, and in order to post a moment, I've: Downloaded the last library, 0.6.1 from here: https://code.google.com/p/google-api-php-client/downloads/list Downloaded example from Silvano Luciani: https://gist.github.com/silvolu/5054214 Configured the example file with all the data from my G+ App This

Google+ sign in error with statusCode=SIGN_IN_REQUIRED on Android 4

 ̄綄美尐妖づ 提交于 2019-12-18 05:10:19
问题 My goal is to develop a game that allows to quiz music with friends. You can test it by yourself by registering to this Google+ community : https://plus.google.com/u/0/communities/100815426127955231967 I am testing my app on several devices : Motorola Xoom, android 4.1.2, build JZO54K Nexus 7 2012 Wifi "nagasi", android 5.0.2, build LRX22G Nexus 5, android 5.0.1, build LRX22C I use the same Google user on all devices. My app is registered and I included the right lines in the manifest file.

Google+ share with custom text and thumbnail

拟墨画扇 提交于 2019-12-18 01:31:34
问题 While creating sharing links for facebook, you can personalize a sharing link by doing something like : <a title='Share on Facebook' href='http://www.facebook.com/sharer.php?s=100 &p[title]=TITLE_HERE &p[summary]=TEXT_HERE &p[url]=URL_HERE &p[images][0]=URL_TO_IMAGE' target='_blank' > <img alt="Facebook" src="ICON_URL" /> </a> Is there a way to do something similar with Google+, instead of having to fill the meta tags in the header (because I need many sharing links in one page) 回答1: You can