WPTweeter is a WordPress plugin that I have developed to automatically update my Twitter feed when new content is posted or updated on my website. It’s a very basic plugin, with only a small amount of features (the ones I use) such as global hashtags and URL shortening.
Twitter has now moved over to OAuth (no longer supporting Basic Auth) – You’re now forced to use this when wanting to post/retrieve information using a Twitter account and Twitter Application. Since searching around I haven’t found any good examples of how to post a Tweet to twitter using the Twitter REST API.
I will be using a third party library as an example and creating an wrapper class to set it up and use it, all you’ll have to do is include a file and a few lines of code to get started. Before we proceed you’ll need to download the Twitter OAuth API from GitHUB by Clicking Here which is developed by Abraham Williams.