Twitter widget is build on Twitter API 1.1 because Twitter disabled API 1.0. Unfortunately Twitter is not that easy now to include on your website, you need to have API keys (similar to Facebook). To get the access keys you need to sign in and create an application on the Twitter Developer Site. Once your application is created Twitter will generate your Oauth settings and access tokens.
Sign in to Twitter. If you don’t already have a Twitter account, you can sign up at the Twitter home page to create one.
After you sign in, you’ll be taken to your application creation page. Be sure to fill in your all fields.
Go to the @Anywhere domains page and add there your domain without "WWW" or "http" prefix e.g. vasterad.com
Go back to your Twitter app’s detail page and copy following keys:
When you have this keys and authorized your domain, open twiter.php and paste them to the correct fields:
// The tokens, keys and secrets from the app you created at https://dev.twitter.com/apps $config = array( 'oauth_access_token' => 'token-here', 'oauth_access_token_secret' => 'token-here', 'consumer_key' => 'token-here', 'consumer_secret' => 'token-here', 'use_whitelist' => false, // If you want to only allow some requests to use this script. 'base_url' => 'http://api.twitter.com/1.1/' );
use_whitelist must be set to false
Then in HTML files replace current widget script with script below and change nickname to yours. You can also modify count of visible tweets. Keep in mind that you need to upload your site online to make widget works.