Share this post:
In this post i going to share with you How to get total twitter followers count from twitter username without api authentication or token.
Yesterday i was working on my laravel 5 application and i require to get count total twitter followers from username. I did search a lot but i nothing get good on laravel or PHP, Finally i was thinking if it is possible by jquery ajax then it will be best. Again i search more and finally got something.
We can simply get number of twitter followers by using cdn widgets, So we are going to use bellow cdn with screen_name = twitter username as like bellow:
In bellow full example you can see how it is work and how to get it. You can also see demo for your username.
<title>How to count Twitter Followers without authentication</title>
<h3>Total Follower : <strong></strong></h3>
var twitter_username = 'itsolutionstuff';
dataType : 'jsonp',
crossDomain : true
You can get as response on data variable like as bellow preview:
Data variable response
"name":"It Solution Stuff",
I hope it can help you...
- Solve - Installation request for guzzle/guzzle in laravel
- Laravel 5 generate sitemap using roumen/sitemap package Example
- How to add jquery modal popup in PHP?
- Twitter Bootstrap - Digital Clock picker with AM PM example using clockface plugin
- How to create and check custom header with middleware for REST API in Laravel 5 ?
- Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2
- AngularJS - How to Limit String Length using Filter?
- Paypal payment gateway integration in php source code example