99

Are there any plans to also support Google+ for sharing links to questions, like it is already implemented for Facebook, Twitter and LinkedIn? It has already been opened for public, and seems to be steadily growing.

17
  • 1
    I would guess this falls under the beta browser rule - when it's fully released it will be (possibly) supported.
    – ChrisF Mod
    Jul 4, 2011 at 11:00
  • @ChrisF: It just be fully released soon (few weeks?). I know it doesn't make sense to add it beforehand, but I'm asking if it is planned. Shouldn't be very difficult. The interface should be already public. Jul 4, 2011 at 11:02
  • 1
    Don't get me wrong - I'm not against the idea, but you might be premature. Also it took a while for Jeff to be persuaded of the value of the LinkedIn link.
    – ChrisF Mod
    Jul 4, 2011 at 11:03
  • @ChrisF: I'm on LinkedIn which is good for professional contacts, but I was surprised after it got added here. Jul 4, 2011 at 11:06
  • 3
    So I guess everyone is betting that Google will be successful on the social networking front this time around? Third time's the charm, I suppose. Jul 4, 2011 at 11:20
  • This could just be enabled for people that are logged in var google. Jul 4, 2011 at 12:09
  • @ChrisF: There was Google Buzz but what was the other attempt? Jul 4, 2011 at 12:31
  • Martin - it was @Cody who made the "third time's the charm" comment, but I'm guessing he meant Google Wave.
    – ChrisF Mod
    Jul 4, 2011 at 12:32
  • @ChrisF: Sorry, the common leading C apparently made me look in the wrong line. Thanks for answering! Jul 4, 2011 at 12:34
  • 1
    Buzz, Wave, and Orkut are all possibilities. Jul 4, 2011 at 12:39
  • I would suggest addthis. It supports over 300 services and it already has +1 button.
    – BrunoLM
    Jul 4, 2011 at 13:59
  • I've already added +1 links to some of my pages, so no, it's not hard to do. Jul 5, 2011 at 5:53
  • Is +1 the same as "share this"? Jul 5, 2011 at 6:56
  • @Martin, More or less -- Here's a description
    – M. Tibbits
    Jul 24, 2011 at 18:50
  • Why so many google +1 for this question (currently only 2)?
    – VMAtm
    Aug 7, 2011 at 14:31

6 Answers 6

31

We have implemented Google+ share links on Stack Overflow and will be rolling these out to the rest of the network very soon.

2
  • Is this a feature of G+ that only stackOverflow can use? because I was trying to setup my links like <a href="https://plus.google.com/share?url=http%3a%2f%2fmyurl.com" > my g link </a> but it doesn't work.
    – Mr_Nizzle
    Jan 27, 2012 at 16:48
  • 1
    @Mr_Nizzle the G+ implementation is in a preview state right now and we have been whitelisted while the bugs are sorted out Jan 27, 2012 at 18:42
56

As Arjan noted, we're not inclined to support this until Google+ produces a standard, simple hyperlink way of sharing, the same as our current Twitter and Facebook sharing links. We don't want to slow down every page with third party requests and weird <iframe> techniques.

There is no such method at this time, but I have been in contact with Google about this matter, and they are aware of our request.

edit: they have a simple link sharing method now, but it's only for whitelisted providers. We are whitelisted for the time being.

2
  • 6
    that's such an annoying, typical corporation answer: "we are aware of your request.**"
    – bigblind
    Dec 19, 2011 at 18:29
  • @sys.stderr They are still in beta. (Though they should come out of beta this year, IIRC.) Jan 27, 2012 at 2:00
26

As for now you can:

  1. Search your question on Google and click +1
  2. Post the link on Google Plus manually
  3. Execute the following script then press the +1 button next to the question title

Code:

javascript:var d=$("<span/>").html('<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone></g:plusone>');d.appendTo($("#question-header h1"));void(0);

If you are using Firefox you can make a script for Greasemonkey or an addon. On Chrome you can make a simple extension to add that automatically.

I would like to see an addthis button, it supports over 300 services and it has the Google +1 button.


If you are on Firefox you can try this addon: +1 Any

right click to toggle count

4
  • 2
    thanks for mentioning addthis. I've just replaced my last chrome extension now!
    – cregox
    Jul 28, 2011 at 18:38
  • 3
    also, I've just pulled off a greasemonkey script from your snippet, Bruno, that can be very simply installed both on chrome (where no extension is needed) and firefox (where you need the greasemonkey plugin). Hope you enjoy: userscripts.org/scripts/show/108498
    – cregox
    Jul 28, 2011 at 18:52
  • @Cawas nice script :) Thanks for sharing. I made just one change, I like a smaller button: <g:plusone size="small">
    – BrunoLM
    Jul 28, 2011 at 19:03
  • 2
    Note that marking a site as "+1" does not share it with your stream! It just adds the site to the "+1" tab at your Google+ profile. Jul 29, 2011 at 17:42
23

So a standard, simple hyperlink way of sharing to Google+ is now making the rounds on blogs (couldn't find an official source, so it may still be undocumented):

https://plusone.google.com/_/+1/confirm?hl=en&url=%URL

Replace %URL with the URL. This is what shows up in the Google+ stream:

Google+ URL post

1
  • 8
    Personally I wouldn't use it in production until there's some official documentation of it. Oct 12, 2011 at 6:33
8

Despite the referral in the URLs, I very much appreciate the current implementation on SE for Facebook, Twitter and LinkedIn. These are plain links, like:

Know someone who can answer? Share a
<a href="/q/97406/...">link</a> to this question via
<a href="mailto:?subject=Stack%20Overflow...&amp;body=...">email</a>,
<a href="http://twitter.com/share?url=...&amp;text=...">twitter</a>, 
<a href="http://www.facebook.com/sharer.php?u=...">facebook</a>, or
<a href="http://www.linkedin.com/shareArticle?...">linkedin</a>

...rather than a (dynamically generated) <iframe> or <img> that allows for tracking, like:

<iframe src="http://www.facebook.com/plugins/like.php?href=...">
<iframe src="https://plusone.google.com?...">

Google states it's not using the button for tracking. Still, when adding +1, please add it without any <iframe> or web bug too! Google itself does not seem to support this (yet?). AddThis Share Forward, like used on Area 51, does list google_plusone, but that might not be working yet.

I've no idea what the user experience would be like. It surely implies one can then not see how many others have liked/+1'd the page.

5
  • +1 button cannot be added without iframe. It will generate one for itself and use html5 postMessage to do stuff. And are you saying iframes are web bugs? GMail has 5 and Google+ has 7, in my view (it might be different for different users). document.getElementsByTagName("iframe").length...
    – BrunoLM
    Jul 24, 2011 at 23:27
  • 3
    @Bruno, if +1 does not offer other APIs, then your nice bookmarklet at least shows that the iframe doesn't have to be on the page all the time. (It could be added when someone wants to +1 something, though that's not very user friendly.) As for the possible web bug nature of iframes, for example: These so-called social widgets [..] notify Facebook and Twitter that a person visited those sites even when users don't click on the buttons, according to a study done for The Wall Street Journal.
    – Arjan
    Jul 25, 2011 at 16:56
  • 2
    The web bug discussion is pointless because Stackoverflow started years ago to use a Google web bug. Aug 17, 2011 at 17:10
  • @Hendrik, good point... (Though blocking Analytics does not keep one from using some features whenever specifically wanted. But I guess people who're blocking Analytics won't be using +1 either.)
    – Arjan
    Aug 17, 2011 at 17:48
  • How could I not think about this... I just setup Google Chrome +1 Extension . It's exactly what I needed.
    – nembleton
    Dec 1, 2011 at 14:16
4

It looks like this was implemented (on Stack Overflow, at least).

Share buttons

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .