PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Matt Williams' Blog: Implementing oAuth Twitter with CodeIgniter

Note: This article was originally published at PHPDeveloper on 27 August 2010.
PHPDeveloper

On his blog today Matt Williams has a quick tutorial about setting up your CodeIgniter application to use the new oAuth authentication feature that Twitter with the help of this library.

On August 31st Twitter will be axing basic auth GET requests, which is being overtaken by the more secure oAuth, there are a few tutorials out there on how to use oAuth and how to get started creating an app with CodeIgniter, but not many with actually helpful advice so here is my 2 penneth.

The library makes it simple to connect to the Twitter servers with your key/token combination and run a check against the credentials via a simple "oauth()" method call. Sample code is included in the post to make implementing easier.