CodeIgniter, Twitter and Oauth.. |
[eluser]WoolyG[/eluser]
Hi all, I've been banging my head against this for days now, and simply can't find an easy-to-follow resource on it, and for the life of me, can't get it working. Has anybody got a simple, easy-to-follow, step by step, guide on how to integrate Twitter's Oauth into my site? I've loaded Elliot Haughin's CI Library for Twitter & Oauth. Here's my controller (twitter_call.php): Code: <?php and here's my view(twitter.php): Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Here's my .htaccess: Code: <IfModule mod_rewrite.c> What I've done too: Set $config['uri_protocol'] = "PATH_INFO"; Set $config['permitted_uri_chars'] = 'a-z? 0-9~%.:_\-'; Now the problem I'm up against is - when I load http://www.mysite.com/twitter_call, the URL reverts to a login page where I log in to the app. If I re-set my $config['uri_protocol'] to AUTO, the login script for the app works, but I get no joy from the twitter code. I just want to update my twitter status from this little app behind my site. This is driving me crazy, and my urge to type in capital letters is overwhelming.....! Can anyone help in a constructive manner? Referring me to Matt Willos site or Elliott Haughins site won't really cut it I can give someone access to my live code playground if needs be. All info appreciated - thanks. WoolyG |
Messages In This Thread |
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-18-2010, 01:16 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-18-2010, 09:49 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-18-2010, 10:03 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-19-2010, 12:08 AM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-20-2010, 12:30 AM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-21-2010, 09:21 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-22-2010, 10:14 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-22-2010, 10:15 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-22-2010, 11:54 PM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-23-2010, 12:15 AM
CodeIgniter, Twitter and Oauth.. - by El Forum - 09-23-2010, 07:53 AM
|