google-plus-one

Getting google plus shares for a given URL in PHP

…衆ロ難τιáo~ 提交于 2019-12-10 15:15:39
问题 I want to get the number of shares on google plus for a given URL in PHP. I found this function to do that: function get_shares_google_plus($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]

Google plus one button not showing

久未见 提交于 2019-12-10 04:17:06
问题 I'm trying to add a Google +1 button to my website. I have followed the instructions here: http://www.google.com/intl/en/webmasters/+1/button/index.html This the code for my webpage: <html> <head> <title> Why won't it appear? </title> <!-- 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"></script> </head> <body> <h1> Example title </h1> <!-- Place this tag where you want the +1 button to render --> <g

Using Google +1 service without JavaScript

喜欢而已 提交于 2019-12-10 03:04:00
问题 I would like to add a Google +1 icon to a website, but without using JavaScript. Is it possible? Is there some URL I can simply link to, to make it work? 回答1: Google now supports sharing via a static URL: https://plus.google.com/share?url=URLHERE More information there: https://developers.google.com/+/plugins/share/#sharelink 回答2: There is a feature request you can comment on to show your support: https://code.google.com/p/google-plus-platform/issues/detail?id=50 In the meantime, since there

I have integrated google plus in my IOS App ,But I am not able to get email Id of current user that is logged In

浪子不回头ぞ 提交于 2019-12-08 03:56:35
问题 I have integrated google plus in my ios app ,I am able to sign in successfully but I am not able to get email Id of current user that is logged in. I have referd to https://developers.google.com/+/mobile/ios/ and have followed all the steps that are necessary for sign in! So, How i get current User Mail ID that is Login In Google plus? 回答1: go to GTMOAuth2Authentication.m file method setKeysForResponseDictionary in dic returns access token at end of method. accessTocken = [dict valueForKey:@

Google Plus api for iOS get friend list

こ雲淡風輕ζ 提交于 2019-12-06 11:50:32
问题 I want to get friends(People) list from Google+ in iOS app. I am using Google+ api tutorial given in link https://developers.google.com/+/mobile/ios/getting-started I am created new project on Google+ Developer Console the link is https://console.developers.google.com/project Getting following error in -(void)getPeopleInfo. [lvl=3] __31-[ViewController getPeopleInfo]_block_invoke() Error: Error Domain=com.google.GTLJSONRPCErrorDomain Code=401 "The operation couldn’t be completed. (Invalid

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

[亡魂溺海] 提交于 2019-12-06 04:58:27
问题 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

How to programmatically retrieve the total number of Google +1's for a URL

别来无恙 提交于 2019-12-06 02:46:39
问题 Now that Google has officially released their +1 button for websites, I'd like to find a way to retrieve the total number of +1's for a specific URL programmatically. For example, I'd like to access this value independently of the +1 button for use in tooltips, as shown for RSS subscribers below. More information on the +1 button: https://code.google.com/apis/+1button/ 回答1: Google+ metrics: Activity by URL gives the sum total of all +1's for a URL, as well as the number of +1's for a

google +1 button adds scroll bar to my site

萝らか妹 提交于 2019-12-06 02:44:45
问题 I have had a google +1 button on my site for more then a year and it all worked fine. In the last couple of days this button started to create a horizontal scroll bar on my site. I know that beacase when I remove the button the scroll bar disappears. Here is my site: www.kitchen-guide.co.il Any suggestions what should I do? Thanks! 回答1: borrowing from superware's answer, was having the same problem... however, this worked for me: iframe[id^="oauth2relay"] { position: fixed !important; } 回答2:

Google plus one button not showing

℡╲_俬逩灬. 提交于 2019-12-05 05:32:48
I'm trying to add a Google +1 button to my website. I have followed the instructions here: http://www.google.com/intl/en/webmasters/+1/button/index.html This the code for my webpage: <html> <head> <title> Why won't it appear? </title> <!-- 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"></script> </head> <body> <h1> Example title </h1> <!-- Place this tag where you want the +1 button to render --> <g:plusone size="tall" href="http://www.example.com/"></g:plusone> </body> </html> As you can see, I've

Using Google +1 service without JavaScript

大城市里の小女人 提交于 2019-12-05 03:09:27
I would like to add a Google +1 icon to a website, but without using JavaScript. Is it possible? Is there some URL I can simply link to, to make it work? Google now supports sharing via a static URL: https://plus.google.com/share?url=URLHERE More information there: https://developers.google.com/+/plugins/share/#sharelink There is a feature request you can comment on to show your support: https://code.google.com/p/google-plus-platform/issues/detail?id=50 In the meantime, since there is no +1 button fallback when javascript is disabled, Google feels that tracking users is more important than not