google-plus-one

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

寵の児 提交于 2019-11-27 13:45:07
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? Basically, this syntax allows to call _.Em() in the context of the window object instead of _ . Assuming you have this code: Foo = function() { this.foo = "foo"; }; Foo.prototype.Em = function() { alert(this.foo); }; var _ =

Google +1 Button not working in IE7?

北战南征 提交于 2019-11-27 12:38:04
问题 Works fine in IE8, IE9, and latest Chrome and Firefox, but can't seem to get it to show up in IE7. This is even with the most basic example of using the script. Anyone had similar issues? Thanks! 回答1: http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=1151309 Looks like it's not supported. 来源: https://stackoverflow.com/questions/6218789/google-1-button-not-working-in-ie7

Adding a Google +1 button in Android App

家住魔仙堡 提交于 2019-11-27 11:55:33
I was just wondering if there was anyway to add a Google +1 button inside my Android app. I have seen a +1 on the Android Market so I would think there would be some way to do this. With the Google+ platform for Android, you are now able to integrate a native +1 button in your Android app. 1) You first need to initialize the PlusClient object in your Activity. 2) Include the PlusOneButton in your layout: <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"

Google Plus sharing from android app

喜你入骨 提交于 2019-11-27 09:36:09
I have been trying to post on google plus stream since morning, but it does not getting posted all contents specified in deeplinkid only the content inside setText() gets posted. here is my code, Intent shareIntent = new PlusShare.Builder(this) .setText("Hello Android!") .setType("image/png") .setContentDeepLinkId(offrdetails_data.get(0).offerLink, offrdetails_data.get(0).dealTitle, offrdetails_data.get(0).dealDescription, Uri.parse(offrdetails_data.get(0).dealImage)) .getIntent(); startActivityForResult(shareIntent, 0); I just tested your code with a minimal MainActivity and it worked: public

Are there tags to specify the Google +1 story format in Google+ like og-meta for Facebook?

ⅰ亾dé卋堺 提交于 2019-11-27 00:43:29
问题 With Facebook we have the Open Graph tags that allow webmasters to specify how the story is displayed on Facebook. Is there something similar for the Google +1 button, that allows webmasters to specify the thumbnail image, description and title? Google+ seems to be ignoring the og-meta tags . 回答1: From Google+ help docs, we now have an official answer . Google uses schema.org microdata to generate rich snippets in search (and in Google+). There's a lot written about schema.org and how it

Use custom image for Google+1 button?

馋奶兔 提交于 2019-11-26 22:38:03
问题 I want to include a "google+1" button on a page, yet I want to use a custom image with a custom size for it and preferably without javascript, much like is possible to do with Facebook and Twitter. I don't care if it don't show the count number for now. 回答1: Finally! Found a nice solution to this problem. So simple and working :) Hope it helps you! <a href="https://plus.google.com/share?url=ADD_YOUR_URL" > <img src="path_to_your_image" alt="Google+" title="Google+"/> </a> Source: http:/

How to get Google +1 count for current page in PHP?

核能气质少年 提交于 2019-11-26 19:45:34
问题 I want to get count of Google +1s for current web page ? I want to do this process in PHP, then write number of shares or +1s to database. That's why, I need it. So, How can I do this process (getting count of +1s) in PHP ? Thanks in advance. 回答1: This one works for me and is faster than the CURL one: function getPlus1($url) { $html = file_get_contents( "https://plusone.google.com/_/+1/fastbutton?url=".urlencode($url)); $doc = new DOMDocument(); $doc->loadHTML($html); $counter=$doc-

Adding a Google +1 button in Android App

末鹿安然 提交于 2019-11-26 15:47:54
问题 I was just wondering if there was anyway to add a Google +1 button inside my Android app. I have seen a +1 on the Android Market so I would think there would be some way to do this. 回答1: With the Google+ platform for Android, you are now able to integrate a native +1 button in your Android app. 1) You first need to initialize the PlusClient object in your Activity. 2) Include the PlusOneButton in your layout: <com.google.android.gms.plus.PlusOneButton xmlns:plus="http://schemas.android.com