google-plus-one

Google Plus api for iOS get friend list

人走茶凉 提交于 2019-12-04 19:13:09
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 Credentials)" UserInfo=0x14d89340 {error=Invalid Credentials, GTLStructuredError=GTLErrorObject 0x14d855e0

Is there a easy way to tell if a user has google 1+ a URL

跟風遠走 提交于 2019-12-04 14:02:02
问题 Let's say I have a webpage and I have added the 1+ button. Is there a good way to tell if the user has already pressed the 1+ button on a previous visit. I'd like to present a thank you on all the viewers visit if they've 1+ the page. 回答1: In the +1 API there is a callback method which you can use to trap +1's A strategy would be to trap these calls and store a cookie on the browser. Next time the user comes, you can check the cookie and show the thanks message. From the docs callback The

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

google +1 button adds scroll bar to my site

这一生的挚爱 提交于 2019-12-04 08:22:01
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! borrowing from superware's answer, was having the same problem... however, this worked for me: iframe[id^="oauth2relay"] { position: fixed !important; } Google's +1 button is adding the following iframe to the end of the page body: <iframe name="oauth2relayXXXXXXXXX

google +1 javascript configuration object

和自甴很熟 提交于 2019-12-03 16:59:37
问题 The google +1 button embed code can have a javascript object with configuration (e.g. " {lang:'de'} "). In plain javascript, this object would be created and immediately destroyed, because it is not referenced by anything. I wonder how do the google scripts access this object? <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {lang: 'de'} </script> It seems to work - except when you dynamically write the script tag including the configuration object into the DOM. 回答1

Is there a easy way to tell if a user has google 1+ a URL

喜夏-厌秋 提交于 2019-12-03 08:05:32
Let's say I have a webpage and I have added the 1+ button. Is there a good way to tell if the user has already pressed the 1+ button on a previous visit. I'd like to present a thank you on all the viewers visit if they've 1+ the page. In the +1 API there is a callback method which you can use to trap +1's A strategy would be to trap these calls and store a cookie on the browser. Next time the user comes, you can check the cookie and show the thanks message. From the docs callback The identifier for a function in the global namespace Called after the user has clicked the +1 button. The callback

google +1 javascript configuration object

眉间皱痕 提交于 2019-12-03 06:05:16
The google +1 button embed code can have a javascript object with configuration (e.g. " {lang:'de'} "). In plain javascript, this object would be created and immediately destroyed, because it is not referenced by anything. I wonder how do the google scripts access this object? <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {lang: 'de'} </script> It seems to work - except when you dynamically write the script tag including the configuration object into the DOM. Widget script run at document.scripts and searching one with string "/js/plusone.js" in scr attribute.

Google's +1 Button: How do they do it?

心不动则不痛 提交于 2019-12-03 05:54:55
问题 Exploring Google's +1 Button, I found two things odd about the code they supply: <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {lang: 'en-GB'} </script> <g:plusone size="tall" href="http://www.google.com"></g:plusone> So I have two questions: First: How is Google able to use the text between the script tags? Second: Is the syntax <g:plusone ... HTML valid? What's this called? 回答1: How is Google able to use the text between the script tags? <script> elements are

Is it possible to access a user's Google +1 (Plus One) history via an API?

自作多情 提交于 2019-12-03 01:45:19
问题 I would like to access a user's Google Plus One history With +1 enabled, the history is saved in your Google profile and optionally can be displayed: http://www.google.com/+1/button/ It is possible to access this programatically (once the user has given permission via normal Google Authentication and Authorization?) I have only been able to find information for the API to add the button to sites. 回答1: You can allways try to parse the data used by G+ itself. The G+ user profile has a tab with

Google's +1 Button: How do they do it?

早过忘川 提交于 2019-12-02 19:19:53
Exploring Google's +1 Button, I found two things odd about the code they supply: <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {lang: 'en-GB'} </script> <g:plusone size="tall" href="http://www.google.com"></g:plusone> So I have two questions: First: How is Google able to use the text between the script tags? Second: Is the syntax <g:plusone ... HTML valid? What's this called? How is Google able to use the text between the script tags? <script> elements are perfectly visible in the DOM: <script type="text/javascript">//FIRST SCRIPT BLOCK</script> <script type="text