google-plus-one

How to use Google +1 in a content script without Content Security Policy error?

不想你离开。 提交于 2020-01-13 06:54:08
问题 I'm trying to build chrome extension that uses +1 google api. My manifest.json looks like: "manifest_version": 2, "content_security_policy": "script-src 'self' https://apis.google.com; object-src 'self'", ... "matches": ["http://demosite.com/*"], "js": ["js/jquery.js","js/social/plusone.js"] As you can see I've whitelisted apis.google.com. My plusone.js looks like: var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text

Difficulty getting google plus one count

十年热恋 提交于 2020-01-11 06:56:18
问题 I have been searching all over the internet on how to get programaticaly google plus one button count. Finally i found this article Here is the Php Script mentioned in the arcticle. <?php $url = "http://www.tomanthony.co.uk/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://clients6.google.com/rpc?key=AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"

Adding a Google +1 Button after page load in IE 8

╄→尐↘猪︶ㄣ 提交于 2020-01-11 05:44:06
问题 I'm working on a site right now where I need to build a URL before putting the button on the page. Here's how it works: var googleplus = $("<g:plusone size='tall' href='http://google.com'></g:plusone>"); $("#container").append(googleplus); gapi.plusone.go(); And in the head I have this: <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> This works in Firefox/Chrome/IE 9, but not IE 8. I'm at a loss as to what else to do to make it work. I tried with the gapi

Googlebot vs “Google Plus +1 Share Button bot”?

女生的网名这么多〃 提交于 2020-01-06 15:30:47
问题 Site Setup I have a fully client-side one page webapp that is dynamically updated and routed on the client side. I redirect any #! requests to a headless server that renders the request with javascript executed and returns the final html to the bot. The head of the site also contains: <meta name="fragment" content="!"> Fetch as Google works Using the Fetch as Google webmaster tool, in the Fetch Status page, I can see that the jQuery I used to update the og:title, og:image, and og:description

Specify image when sharing from Google +1 button

匆匆过客 提交于 2020-01-01 09:19:53
问题 In this link, I have learned to specify a URL for the Google +1 button. specify custom url to gplus one button. Can I also specify a specific image? Edited I don't need to change the Google plus button gif or the background of the Google plus button. I need specify the image that a user want to share in social network. Is possible? 回答1: Yes this is possible. What you mean is that you want to specify an image that will show up in the snippet that is generated by sharing on Google+. The +1

Google Plus sharing from android app

被刻印的时光 ゝ 提交于 2019-12-28 03:10:12
问题 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();

Google Plus Count url

坚强是说给别人听的谎言 提交于 2019-12-25 05:25:27
问题 I'm trying to get the count of plus one's I have for google plus, I am checking to see if I have the count right with this https://plusone.google.com/u/0/_/%2B1/fastbutton?count=true&url=MY_URL I see that google plus rejects my URL (doesn't return 0 or anything) I wanted to know if anyone can tell me if I have anything wrong in my url, I have these symbols in my url outside of letters and numbers : / . ? = & _ and my url is formatted like this (protocol)://(server [such as www]).(domain)/

Plus 1 button doesn't render properly in IE9

我的未来我决定 提交于 2019-12-25 05:07:32
问题 I noticed recently the Plus 1 button on my company's website doesn't render properly in IE 9 and 10. Looks perfect in Chrome, but can't seem to get it to show up in IE without a chunk being cut off the bottom of the button. Compatability Mode doesn't help. Any tricks to position or pad around the button so it shows up properly? I tried putting the code in table but that didn't help at all, nor does paragraph or break. Facebook Like button shows up correctly in both IE and Chrome. Windows

Google+ +1 Button Snippet+ Problem

99封情书 提交于 2019-12-24 21:13:45
问题 I have integrated the Google +1 button into a website ( http://www2.highpoint.edu ). I tried to use schema.org <meta> tags to provide Name, Description, and Image for the +Snippets information, but it doesn't work. When I use the +1 button and try to post to Google+ about the website, it picks an image that I don't want. And it won't pick the image I have set with the <meta> tag. My questions: How do I get the +Snippet data populated from schema.org metadata? For a page with 2 or more +1

Android Google Plus SDK: progress indicator (ProgressBar) never stops after click on +1 button

血红的双手。 提交于 2019-12-24 12:20:01
问题 I implemented the +1 button in my Android app. Almost everything works fine: I can log in /log out when I am logged in, the +1 button tells what is the number of +1 and becomes red/white in compliance with the fact that I did or not a +1 on my webpage BUT....when I click on the +1 button, an activity indicator (progress indicator (ProgressBar)) appears on my +1 button (which becomes white) and it never stops rotating ! The window to cancel/share/make a +1 never appears... Note that I have