Comments (15)
Sounds reasonable.
from shariff-backend-php.
whats about https://dev.twitter.com/rest/reference/get/search/tweets ?
search for the url as the query string.
Just oauth is needed, but zend framework has support for the twitter oauth.
Edit: gives max 100 tweets back... with content and meta stuff
with 450 searches per 15min you can check for up to 45k tweets.
This should be enough for most pages but generates a huge amount of traffic
from shariff-backend-php.
The rest api search is limited to the last 7 days. You would have to search for the url, count the results and record the timestamp you searched and store both permanently somewhere (not in the cache). When you search a second, third, and so on time you use the timestamp to determine if a result is new and then add the amount of new results to the stored amount.
Of course this will only work for new urls. Everything that happened prior to the new system cannot be counted, so all old posts, entries, news, whatever will be zero.
http://opensharecount.com basically did exactly this, as I understood it, and provide it as a service in the old Twitter api style. Unfortunately they don't seem all too trustworthy to me. If you want to use that service for yourself (or if anyone else does), I would STRONGLY recommend to NOT use your real Twitter account for it and to NOT provide any real information while registering with this service as well as with Twitter. Just create a another Twitter account with a trash mail address and then registered with that account on opensharecount.com. They gain access to everything on that account and even can tweet in your name!
Because of all these reasons, I haven't decided yet, if I really want to add it to our WordPress plugin version of Shariff. I'm really interested though in other peoples opinions about this.
The only real way to get accurate share counts now is to pay 5000 Euros and more per month to Twitter for their Gnip apis. Don't think anybody is going to do that for some share count buttons.
from shariff-backend-php.
or you use this:
https://twittercommunity.com/t/is-http-urls-api-twitter-com-1-urls-count-json-a-valid-way-to-get-the-tweet-count-for-a-url/13369
but this don't fit to the shariff backend as it is
there might be services on base of this soon.
from shariff-backend-php.
Did you accidentally post the wrong link or did I overlook something? The link describes the old api endpoint that Twitter just retired.
from shariff-backend-php.
the second and fourth post.
that you need to calculate the count yourself while getting streamed every tweet that fits the search string.
https://dev.twitter.com/streaming/reference/post/statuses/filter
from shariff-backend-php.
Ah, got it. Well, like you said nothing that really fits to Shariff. Way to much traffic and you need a single account for every domain, otherwise you will run into the limits way too quickly. Maybe there will be other services like OpenShareCount in the future that are more "open" and less fishy.
from shariff-backend-php.
Twitter will be removed from the backend as soon as flattr fixes their API and Travis successfully builds this pull request.
from shariff-backend-php.
The only real way to get accurate share counts now is to pay 5000 Euros and more per month to Twitter for their Gnip apis. Don't think anybody is going to do that for some share count buttons.
- startef
So, no Twitter Share Counts for 'us' in the future?
from shariff-backend-php.
@Tinendo No! We have to except it. It does not help to cry after it, it's a free service, they can do what they like to do.
@compeak I already prepared the patch locally, shall I create a PR or will you do it on your own?
from shariff-backend-php.
@liayn I did it in #48. Please have a look at it and tell me if I missed something.
from shariff-backend-php.
@compeak Oh, thanks for the hint, I missed that completely. Looks good. Can you release that asap, so I can release a new version of the TYPO3 Extension?
(I will come up with another PR for the composer.json in a minute)
from shariff-backend-php.
Twitter has been removed from all backends.
from shariff-backend-php.
Took me some time to find this thread and learn that Twitter counts (unfortunately) are no longer available.
I suggest that this information is added to the README.md so other users don't wonder why Twitter is missing in the "Supported services". Should I add a sentence to README.md?
from shariff-backend-php.
@stefahn: No. The README clearly states which services are supported and is bundled with every release.
from shariff-backend-php.
Related Issues (20)
- [Reddit] 429 Too Many Requests HOT 1
- [BUG] Facebook API V.2.2 was disabled 2017-03-27 HOT 11
- Shariff Backend unter Centos 7.3 und bei Rails-App - Route not found - was ist falsch HOT 4
- 800 files in vendor folder HOT 1
- Wrong Facebook informations are crashing the whole app HOT 2
- Shariff: PHP Fatal error: Uncaught exception HOT 4
- Facebook-count is zero, but facebook debugger returns 30 HOT 11
- Google-Counter immer 0? HOT 9
- Feature Request: Tracking-Suffix an URL HOT 2
- New release? HOT 2
- Raise version constraint for friendsofphp/php-cs-fixer HOT 1
- [Support Request] How to install backend to use it with Drupal HOT 7
- Receive Likes from http URL HOT 2
- Rate Limiting on the Facebook Graph API
- Request for share counts on linked in return eror 404 HOT 5
- Only gets counts on Xing HOT 2
- Support for PHP 8 HOT 3
- Reddit not returning share count HOT 3
- guzzlehttp/guzzle 7+ support?
- Flattr backend link does not exist anymore HOT 4
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 shariff-backend-php.