Automatically update your Twitter profile picture by selecting from a list of images on your website.
Notice: This project no longer works for automatic profile updates. X.com (Twitter) has moved profile image updates to their Pro/Enterprise API tiers which costs hundreds/thousands per month. As such, this repository has been permanently archived.
-
Clone
git clone https://github.com/yourusername/twitpic.git
-
Add Your Images
- Place your profile image options in the
images/folder - Supported formats: JPG, JPEG, PNG, GIF, WebP, BMP
- Name them anything you want (e.g.,
profile1.jpg,casual.png, etc.)
- Place your profile image options in the
-
Configure API Keys
- Open
config.php - Replace placeholder values with your API credentials:
define ('API_KEY', 'your_api_key'); define ('API_KEY_SECRET', 'your_api_secret'); define ('ACCESS_TOKEN', 'your_access_token'); define ('ACCESS_TOKEN_SECRET', 'your_access_token_secret');
- Open
-
Upload
- Upload the entire folder to your web server
- Visit
yoursite.tld/twitpic/index.php - Browse your image options
- Manually update your profile on X.com
MIT License - feel free to use this code for your own projects.