[eluser]Schnyder[/eluser]
Peng, I figured out how to pass twitter the appropriate callback url. Since the connect_twitter controller handles both the redirection to twitter for authentication as well as the postback, I just updated connect_twitter.php, with the following change: