[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:
ORIGINAL LINE:
Code:
$tempURL = $this->twitter_lib->etw->getAuthenticateUrl();
REPLACEMENT LINES:
Code:
$callbackURL = current_url();
$tempURL = $this->twitter_lib->etw->getAuthenticateUrl(null, array('oauth_callback'=>$callbackURL));
Now twitter calls back to the same URL, regardless of what URL you have configured on your Twitter app account... and that works just fine for me.
thanks,
Chris