Automatically update your Twitter profile picture by selecting from a list of images on your website.
https://thomasloupe.com/twitter/index.php
Note: Twitpic uses twitter-api-php/TwitterAPIExchange.php located here created by J7mbo.
- Visit the Twitter Developer Website and set up an application.
- Clone this repository and open config.php. Enter your tokens into each field from here.
- Replace the images inside the images folder with your desired images. Ensure all images are named in numerical order (IE: 0.jpg, 1.jpg, 2.jpg, ...).
- Open index.php and change the array on line 16 to the total number of images you placed in the image folder.
- Copy lines 53-58 in index.php and paste a copy for each new image you added, if applicable, below the last div on line 77 where the HTML comment is.
- Change the value to the value of the button to the image that it belongs to in your images folder.
- Change the value of the image source to match the filename of the image it belongs to in your images folder.
- Upload your code to desired server and visit the index.php page. Click an image, and Twitter should update your profile image.