google-plus

placement of facebook like and google + buttons inline?

痞子三分冷 提交于 2019-12-04 10:44:05
问题 Does anyone have any tricks to aligning these two buttons on a page? By default the iframe version of the facebook like button appears below the google plus button or vice versa. Are there any css tricks to keep them inline? This is my current attempt <div style="float:left;width:100px;"> <!-- Place this tag where you want the +1 button to render --> <g:plusone></g:plusone> <!-- Place this tag after the last plusone tag --> <script type="text/javascript"> (function() { var po = document

Google plus share button callback (when share is succeded)

断了今生、忘了曾经 提交于 2019-12-04 10:30:55
is there a way to get the callback for a succeful share with this code ? (it's for sharing a link on google plus) <a href="https://plus.google.com/share?url={URL}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a> thank you https://developers.google.com/+/web/share/ onendinteraction function(jsonParam) If specified, this function is called when the interaction bubble disappears. You can use this callback function to

Linking to Google PlusOne, without embedding the button (for privacy reasons)

坚强是说给别人听的谎言 提交于 2019-12-04 10:20:39
It seems that Google only offers code to embed the +1 button. However, there are heavy privacy concerns (plus quite some load time) associated with it. For some pointers about the privacy and legal issues associated with Facebook like and Google +1, see: Like button and privacy concern A common workaround seems to be a two-click solution German ( also discussed on slashdot English ), where the first click enables the button (loading the javascript from Google), the second then is on the regular +1 button. However, I do not want to implement this two-click solution either. Largely because the

Is Google+ API going to shut down?

早过忘川 提交于 2019-12-04 10:16:29
According to this article https://www.engadget.com/2018/10/08/google-shutting-down-google-plus/ Google is planning to shut down its social network Google+ for consumers. I was wondering if the Google+'s api is also going to be removed? In my case I am using this endpoint to retrieve user's public profile. https://www.googleapis.com/plus/v1/people/me Yes, Google+ APIs are shutting down. Google+ APIs will be shut down on March 7, 2019 . This includes Google+ Sign-in. Learn more. Google+ integrations for web and mobile apps will also cease to function March 7, 2019. Learn more. This will be a

Storing a Response From a Google JavaScript API Request

余生长醉 提交于 2019-12-04 09:22:33
While trying out Google's Javascript API with Google+, I ran across a snag. var response; var request = gapi.client.request({ 'path': '/plus/v1/people/' + "THEUSERID", 'params': {}}); request.execute(function(resp){}); The execute function (gapi.client.HttpRequest.execute) takes a single argument; a callback function. However, I do not wish to handle the data immediately after I receive it, I want to store it in the response variable I declared at the start of the code. Is there a way to use the callback argument to store the response? Forgive me if this has an obvious solution, I'm a little

Google plus followers in plain text

帅比萌擦擦* 提交于 2019-12-04 08:15:43
How to get google plus followers in plain text? JSON or XML https://developers.google.com/+/api/latest/people/get doesn't have followers field key. Currently there is no way to get followers (or any circle information) from Google+ through the API. Himanshu Dhiraj Mishra You can do using API key, must sure Google plus followers visibility should be public try on fiddle: https://jsfiddle.net/himstar/j4932w0s/ var profileid = '100520061367519307358'; var apikey = 'AIzaSyAqlZ1MJSGXMSs8q5WbfvLpZTGJeHLVc2w'; var url = 'https://www.googleapis.com/plus/v1/people/' + profileid + '?key=' + apikey; $

How to fetch email addresses of Google plus circles (Friends added in Google plus circles)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 08:10:03
I am able to login with google plus and have fetch the list of all the people who are in my google plus circle but now i also want to get the email addresses of all people in my circle is there are way to do it? I have tried this code but it does not work. public void onPeopleLoaded(ConnectionResult status, final PersonBuffer personBuffer, String nextPageToken) { if (status.getErrorCode() == ConnectionResult.SUCCESS) { try { //Add all friends ids in an arraylist int count = personBuffer.getCount(); //Loop through all the ids of google plus friends for (int i = 0; i < count; i++) { //mListItems

Google plus integrating: Unable to load visible circles

强颜欢笑 提交于 2019-12-04 07:26:42
I want to get list of people info from google plus in my app: friends profile image URL, visible name and id. Here's an official google plus integrating tutorial . I make the test app by this tutorial and trapped on error: Error requesting visible circles: Status{statusCode=NETWORK_ERROR, resolution=null} Implementing the Google Api Client: mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API, null) .addScope(Plus.SCOPE_PLUS_PROFILE) .addScope(Plus.SCOPE_PLUS_LOGIN) .build(); Here's onResult: @Override public

NULL Pointer Exception when integrating g+ Signin

梦想的初衷 提交于 2019-12-04 07:01:53
问题 This is my code public class gsign extends Activity implements ConnectionCallbacks,OnConnectionFailedListener { private static final int RC_SIGN_IN = 0; private static final String TAG = "MainActivity"; private GoogleApiClient mGoogleApiClient; private boolean mIntentInProgress; private boolean mSignInClicked; private ConnectionResult mConnectionResult; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new GoogleApiClient

Android google+ login in a fragment

微笑、不失礼 提交于 2019-12-04 06:58:44
Currently I am trying to implement google+ login using fragment so I can use it from different activities. I have created fragment like this public class GoogleSignUpFragment extends Fragment implements ConnectionCallbacks, OnConnectionFailedListener, OnClickListener { // PlusClient Variables private static final int REQUEST_CODE_RESOLVE_ERR = 9000; private ProgressDialog mConnectionProgressDialog; private PlusClient mPlusClient; private ConnectionResult mConnectionResult; @Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate