I've been trying to get Twitter authentication to work on my website
and I've run into a wall.
Advertising
Basically, I have a file called Twitter.php. The idea is that this
file will be called on every page that needs to make an API request.
I have another file called AuthLanding.php. AuthLanding.php is the
callback URL for Twitter.
If a user browses to a page that requires authentication, I want to
redirect them to Twitter to authenticate.
I've got a lot of code written, but for the life of me, I can't get it
to work. I would REALLY appreciate it if you could take a quick
glance.
Here is Twitter.php: http://pastebin.com/m891ee71
Here is AuthLanding.php: http://pastebin.com/mc026480
Thanks so much!