Skip to content

Automatically update your Twitter profile picture by selecting from a list of images on your website.

Notifications You must be signed in to change notification settings

thomasloupe/twitpic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitpic

Automatically update your Twitter profile picture by selecting from a list of images on your website.

Live Demo

https://thomasloupe.com/twitter/index.php

Note: This repository uses twitter-api-php/TwitterAPIExchange.php located here. The file has been included in this release but credit goes to J7mbo for his great Twitter API.

Getting Started

  1. Visit the Twitter Developer Website and set up an application.
  2. Clone this repository and open config.php. Enter your tokens into each field from here.
  3. 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, ...).
  4. Open index.php and change the array on line 16 to the total number of images you placed in the image folder.
  5. 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.
  6. Change the value to the value of the button to the image that it belongs to in your images folder.
  7. Change the value of the image source to match the filename of the image it belongs to in your images folder.
  8. Upload your code to desired server and visit the index.php page. Click an image, and Twitter should update your profile image.

About

Automatically update your Twitter profile picture by selecting from a list of images on your website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published