PHP – Posting to Twitter (using OAuth)

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.

Read More