Every blog I setup these days, I also create a twitter account to go with it and I link the 2 together. Twitter recently updated their login method so now the only way you can connect a blog with twitter and have it auto-post is to create an app for your blog. Luckily, there is a plugin called WP to Twitter that makes this process nice and easy to setup. In this guide I will show you how you go about setting up this plugin.
Download & install the plugin
You can also upload the plugin directly, via your wordpress admin panel by clicking Plugins > Add New > Upload > Install Now.
You will also need to enter your ftp settings there as well, your webhost will have provided these when you signed up.
Once the plugin is uploaded, visit your plugins page and click “activate” next to WP to Twitter. Now under Settings, you will “WP ->Twitter” click this and we can begin the process of setting everything up.
Creating The Twitter App
Make, sure you are logged in to your twitter account that goes with your blog and then visit the New Twitter Application page.
Fill out the details, name your twitter app, choose “Browser” for Application type, Callback url put your blog url and choose “Read & Write” for default access type. Upload an icon and then “Register Application”.
On the next page are various keys and codes, you will need to enter these in the settings page for WP to Twitter.
First off enter the “Consumer Key” and the “Consumer Secret”. Then on the sidebar, click “My Access Token” and enter “Access Token” and “Access Token Secret”.
Click “Connect to Twitter” and you should see the message “WP to Twitter is now connected with Twitter.”
Now you need to define some basic settings and a URL shortner to use.
Click on “Basic Settings”, this is where you define what content you actually send to twitter when you publish a new post. You can also choose to send pages and a tweet when you update a post and post a blog roll link. Personally I only send new posts, here are the settings that I use (note I selected bit.ly as the url shortener) :
Enter your settings and hit “Save”. Now we can go on to define the URL shortener settings.
URL Shortner Settings
Personally I like to use Bit.ly because I like their interface and you can keep a track of how many times your links have been clicked. Go and register for an account and once you are logged in, visit the API key page. Enter your username and API key and click “Save Bit.ly API Key”
There are more advanced options such as adding hash tags and custom text to tweets but we dont need those for now, if you click on the “Check Support” button at the very bottom of the settings page the plugin will send a test tweet to your account and confirm that everything is working and your url shortener worked as well. Just check your twitter page for the tweet and click the Bit.ly link and make sure it takes you to your blog. If those are both ok – congrats, your blog is now setup to auto-tweet any new posts you make.