I am trying to implement Twitter’s OAuth into my Code Igniter web application at which the callback URL is /auth/ so once you have authenticated with Twitter you are taken to /auth/?oauth_token=SOME-TOKEN.
I want to keep the nice clean URL’s the framework provides using the /controller/method/ style of URL but I want to enable query strings as well, there will only ever be one name of the data oauth_token so it’s ok if it has to be hard coded.
Any ideas?
I have tried tons of the things people are saying to do, but none work 🙁
PS: I’m using the .htaccess method of URL rewriting.
There are several ways to handle this.
Most People, and Elliot Haughin’s Twitter Lib, extend the
CI_Inputlibrary with aMY_Inputlibrary that setsallow_query_stringstotrueYou will also need to add
?to the allowed characters inconfig/config.phpand set $config[‘url_protocal’] toPATH_INFOsee here: Enable GET in CodeIgniter