Google+ share link
Asked Answered
T

5

5

I'm looking for equivalent of facebook sharer link (http://www.facebook.com/sharer/sharer.php?u=http://stackoverflow.com) in Google+. I can't use the regular +1 button as I need to embed it in Android application, but I want it to work similar - launch a website to +1 specified url. How do I do it? Or maybe there's some other supported way to embed +1 button in Android application?

Thanks

Tompkins answered 19/10, 2011 at 13:23 Comment(0)
D
5

The official Google+ Share Link is now available here: https://developers.google.com/+/plugins/share/#sharelink

Example usage:

https://plus.google.com/share?url=http://stackoverflow.com

Drewdrewett answered 11/5, 2012 at 3:27 Comment(1)
how can i get the share button click event? is there any other way to share content and return back to previous once it is shared.Hodometer
S
3

you can use following URL to get the Google+ share link.

https://plusone.google.com/_/+1/confirm?hl=en&url=YOUR-WEBSITE
Sweepstake answered 9/1, 2012 at 15:11 Comment(0)
A
2

Concerning that simple-static-link-approach: this (German) forum entry states that such a link does not exist. I don't know how reliable this is (as it seems to be a user-to-user forum), but it's still more than I've been able to find on the official pages.

Aweather answered 19/10, 2011 at 13:33 Comment(0)
S
1

Here is a google+ api: https://developers.google.com/+/api/ , you can integrate it inside your application.

Google+ library download: http://code.google.com/p/google-api-java-client/wiki/Android

Sortilege answered 19/10, 2011 at 13:26 Comment(1)
have u tried with using that api to share text on your wall y i am asking is bcz of the note given at api link is The Google+ API currently provides read-only access to public dataInsured
G
0
Intent shareIntent = new PlusShare.Builder(Proyecto.this)
                              .setType("text/plain")
                              .setText(shareUsuario +" - "+ shareProyecto)
                              .setContentUrl(Uri.parse(getResources().getString(R.string.urlMeetinarts) + "work/" + shareId))
                              .getIntent();             
                            startActivityForResult(shareIntent, 0);
Gerthagerti answered 16/10, 2013 at 10:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.