Comments (6)
unfortunately, google plus has not jsonp url for like counters now ((.
issue on code google about this: https://code.google.com/p/google-plus-platform/issues/detail?id=420
if they will add method for crossdomain request (CORS or JSONP), i will add too.
from socialshare.
Dirty Dirty hack to get around CORS...
jQuery.getJSON('http://anyorigin.com/dev/get/?callback=?&url=https%3A%2F%2Fplusone.google.com%2F_%2F%2B1%2Ffastbutton%3Furl%3Dhttp%3A%2F%2Fgoogle.com', function(data) { console.log(data.contents.match(/window\.__SSR = {c: ([\d]+)/)[1]); });
Services like this:
from socialshare.
Does this help? http://stackoverflow.com/questions/7403553/how-do-i-get-the-counter-of-a-google-plus-1-button/7409062#7409062
from socialshare.
@mschilder unfortunately no, url https://plusone.google.com/_/+1/fastbutton returns data with text/html content type and without Access-Control-Allow-Origin header, browsers blocks these requests :(
from socialshare.
Check my share buttons project https://github.com/enjoyiacm/goodshare.js/blob/master/goodshare.js#L322-L344
I made a Google Plus share count through the $.ajax()
without another services. Work fast & great!
P.S. if it's help you — click GitHub Star button in my goodshare.js repo. Thx :)
from socialshare.
@enjoyiacm thank you a lot!
from socialshare.
Related Issues (20)
- Great plugin HOT 1
- Possible of a total number of shares for a URL? HOT 1
- Plugin does not work in IE8-9 HOT 1
- Facebook share title and text is not effect HOT 4
- Conflict with VK.Widget HOT 3
- VK counter is not working HOT 1
- firefox HOT 10
- Twitter share count don't show now HOT 2
- Could you add wechat social share HOT 2
- Twitter counter HOT 1
- Facebook counter amount is not equal to what URL linter shows HOT 2
- I need whatsapp button HOT 5
- dose not work on some mobile devices ( Iphone ,4,5,6 gen) HOT 1
- Cannot read property 'share_count' of undefined HOT 3
- Get values from counter HOT 1
- Facebook Share count not working HOT 3
- Not a issue, just showing what i did with your great share counter HOT 12
- Instagram HOT 1
- Not able to change the default image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socialshare.