Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged twitter



0 529 posted 13 years ago by laurentzziu
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 806 posted 13 years ago by mloberg
To use just edit the Twitter user ID which appears at the bottom of the snippet. You may want to change the location where the tweets are cached, by default they are stored at the root level of your domain. The reason for caching is that Twitter limi...
0 913 posted 13 years ago by f6design
Since the 31 of august 2010, twitter made its API more secure, stopping basic authentication calls. So, if you used basic authentication you have to change your code and implement oAuth authentication model or you can follow this link and found a mi...
1 1217 posted 13 years ago by ginoplusio
To follow all of members in a list, you may want to use http://tweepml.org/
0 537 posted 13 years ago by zuzara
0 566 posted 13 years ago by screamwork
split_to_chunks splits the string up into an array with elements containing 140 characters <b>or less</b>. This enables you to keep words intact when sending automated twitter messages. $to is needed in order to subtract from 140 the amount of cha...
0 836 posted 13 years ago by s0l1dsnak3123
This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tag...
0 919 posted 14 years ago by ginoplusio
PHP function of mini bot class that lets you retrieve twitter infos from twitter nickname. ($this->attr method is part of the Mini Bot Class)
2 761 posted 14 years ago by ginoplusio
This is the beginning of my retrieval of twitter status class...just something im playing with right now. It retrieves the xml, saves it on your server, then you can either use javascript or php to traverse the xml tree.
0 641 posted 14 years ago by alvincrespo
0 538 posted 14 years ago by maryann
1 575 posted 14 years ago by maryann
0 418 posted 14 years ago by maryann
Modified version of the script created by Dave Stevens, Enables the user to input their credentials on a webpage rather than having to change the actual php script code. Changes: Changed $user,$pass,$term This is a modified script, the original...
0 772 posted 14 years ago by jonathonmaguire
via @kenrick1991
1 539 posted 14 years ago by rickfu
Display the number of people following you on Twitter using this custom Twitter badge. The code simply returns a number so you can style it however you like.
1 674 posted 14 years ago by neal_grosskopf
This is a quick & dirty helper for pumping out those annoying little link sharing URLS. I've kept it simple, so all it does is return a URL formatted for a particular service. To use it, just pass a string of the service name to the helper followe...
1 674 posted 14 years ago by brettbergeron
http://code.google.com/p/jquery-jtwitter/ for examples.
2 661 posted 14 years ago by jonniespratley
Simple PHP script which allows you to specify your twitter log in details and a search term, then automatically follow users who have tweeted that term. Code is released as Open Source, use it as you wish - please leave my URL in the commented sectio...
3 1495 posted 14 years ago by shakefon
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0 458 posted 14 years ago by DrewDouglass
Some PHP code that can be used to get formatted HTML containing N number of tweets for a given twitter user.
5 1007 posted 14 years ago by gripnrip
0 407 posted 14 years ago by wokon
4 697 posted 15 years ago by iTony