Code snippet: Posting to Twitter with shortened bit.ly links
→ Posted in Web Development on 4th November 2011
If you regularly post blog or news articles, and you have a Twitter account, you may tweet about each article once it's posted, but it would be much easier if a tweet was posted automatically once you post the article. Using the Twitter API with OAuth, and using shortened links using the bit.ly API, this can be achieved with PHP.