How To Create Twitter Lists Automatically With PHP
A regularly requested feature by a lot of my readers for Twitter Bot Script, and other tools has been the automatic creation of Twitter Lists. Meaning that you do not have to get user ID’s or anything… Just type in a title, enter your user names, and press make list, and it works.
This is actually very easy to accomplish with a little PHP. You can download the script (free of course) from here at the Twitter Bot Script forum.
Keep in mind that most people only get 150 API calls per hour on their account. The only way to add people to a list through the API as of right now is to use their Twitter account ID number. So you have 1 API call to create the list, 1 API call to get the user ID automatically, and then a third API call to add them to the list. (Way to go Twitter.) This means that you can create a list with up to 74 people on it, and add people to that list at a rate of 75 an hour. Keep in mind each user is limited to creating 20 lists each with a max of 500 users. That’s room for 10,000 accounts that suggest authority and influence Muahaha.
Use this script wisely they are getting smarter at Twitter… Updated version on the way that will allow you to use either user ID’s if you have them cutting API calls to 1 request per user on the list allowing you to add 149 at creation.
I also recommend storing your created lists in a MySQL database or something as a way of tracking / managing them from your toolkit. For instance when you get the 200 OK status back from creating the list, it also returns all the xml data for it. Store that in a row so you can keep track of what you have made, and make it easy to build up.
Thank for the information, it is difficult to beat Twitter.
—
Robert D.
Thanks you!
This script is useful for me and works fine after some initial adjustment into my script.
My interest in TBS is for the automatic posting, and I’d like to post the same tweets to multiple Twitter accounts. Regretfully, it seems only one Twitter account at a time can be active. Also regretfully, the TBS forum is just a spam sink, so it’s no place for users to help each other. I’m surprised I don’t see more interest in this product, because it seems to have a lot of potential. My third regret is that I’m not versed in PHP and can tweak it to work the way I want.