google-plus-one

can I force Google+ button to use open graph URL?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 07:29:01
问题 Is it possible to make Google Plus use open graph URL? I already use OG for Facebook, so have this in code: <meta property="og:url" content="http://www.sandrophoto.com/category/famous-photographers/"/> <meta property="og:type" content="website" /> But Google doesn't want to respect it! Any thoughts? 回答1: Google Plus 1 doesn't currently support og tags. The URL that is +1'd is determined by one of three things, in this order: The button's href attribute This attribute explicitly defines the +1

How to Remove immediate Google Plus Login with Gplus button render/

别来无恙 提交于 2019-12-24 02:18:15
问题 As per google doc: When the google sign in button is loaded, it immediately checks to see if the user has authorized the application. This check is called "immediate mode" and if successful, the Google servers return an access token and pass a new authorization result object to the callback. If the button cannot make an immediate-mode authorization, the user must click the sign-in button to trigger the access flow. My Google Plus signin button is part of header and on logout the home page is

Can Google +1 icon be customized?

孤街醉人 提交于 2019-12-23 12:07:52
问题 Can I use my custom icon with Google +1 or I'm obliged to use one of the icons provided by Google? If I can, how? Thanks. 回答1: I don't think you can since the +1 API is not public (at the time of writing this). You can however configure the button looks here: http://www.google.com/webmasters/+1/button/ Also, you can try to figure out the +1 script and see if you can hack something: https://apis.google.com/js/plusone.js 回答2: No, you can't use custom icon for Google +1 button. Here is the link

Android Development - Any Google + SDK Or code example? [duplicate]

荒凉一梦 提交于 2019-12-23 07:38:29
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is there already a Google+ API? Im looking for Android Google+ code example or sdk (posting on stream is the most importent thing i need). I want some SDK Or example like facebook has (on https://github.com/facebook/facebook-android-sdk for example). I thought of that since many sites now has the '+1' button near the facebooks 'like' button (on articles etc.) I thought why not to publish on google+ if my program

Android +1 button in WebView

怎甘沉沦 提交于 2019-12-19 10:17:13
问题 I've tried putting Google's +1 button in WebView using the methods they describe. I've initialized the WebView as follows: final WebView web = (WebView)findViewById(R.id.webView); web.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); web.getSettings().setJavaScriptEnabled(true); web.getSettings().setSavePassword(false); web.getSettings().setBuiltInZoomControls(false); web.getSettings().setUseWideViewPort(true); web.getSettings().setLoadWithOverviewMode(true); web.setScrollBarStyle

The following classes could not be instantiated: - com.google.android.gms.plus.PlusOneButton

会有一股神秘感。 提交于 2019-12-18 22:38:08
问题 I am following this tutorial https://developers.google.com/+/mobile/android/recommend to integrate +1 button in my app. As soon as I put this code in xml I get errors in GraphicalLayout <com.google.android.gms.plus.PlusOneButton xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" android:id="@+id/plus_one_button" android:layout_width="wrap_content" android:layout_height="wrap_content" plus:size="standard" plus:annotation="inline" /> I also tried putting xmlns:plus=

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 do I get the counter of a google plus +1 button?

不羁岁月 提交于 2019-12-17 23:03:25
问题 I have added a google +1 button to a website, but I want to get it's counter so i can do some math over it. is it possible to enter the iframe created by the standard method of creating the +1 button or do I need to make some adjustment? <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone></g:plusone> I've tried this link:1 , but this is not very accurate 回答1: If you can access curl/file_get_contents/readfile/wget or some way to fetch an external

What's the reason for using such syntax (0, _.Em)();

偶尔善良 提交于 2019-12-17 10:55:11
问题 While investigating google plusone scripts, I've seen following syntax many times: (0, _.Em)(); Assuming _.Em is a function the statement above would result in calling that function, that's pretty obvious. If, on the other hand, it would be undefined, wouldn't the result be the same as doing simply _.Em() ? Can anyone shed a light on what's idea behind using such syntax? 回答1: Basically, this syntax allows to call _.Em() in the context of the window object instead of _ . Assuming you have this

Google Plus button versus page's pluses

好久不见. 提交于 2019-12-13 04:42:24
问题 I have a Google Plus page for my website, which is at https://plus.google.com/111407386830313266899?prsrc=3 As of this moment, it has 8 pluses. But, if you look at my website, which is tied to it, http://www.derekbeck.com/1775/ , the G+ button only renders the number 4. Now, it seems the G+ button is tied to the G+ page. If I plus the button on my site, the number on the G+ page increases. Yet apparently the reverse is not true. Any ideas? Thanks, Derek 回答1: On your website, http://www