Hey,
I have been developing a site on a dev server. I had a twitter app set up so users could post to their twitter stream. I have now set the site live and transfered it to the live server with a new domain. I switched the domain in my twitter app and I reset the keys, but the app still only authenticates to the old dev server. I have even tried making a brand new app but it still only authenticates on the old dev server. This doesn’t make any sense to me. The new app I am using has never had any reference to the old domain so it doesn’t make sense how it works on it. without giving away my keys here is what I am doing.
$consumerKey = ‘XXXXXXXXXXXXX’;
$consumerSecret = ‘XXXXXXXXXXXXXXXXXXXXXXXX’;
$Twitter = new EpiTwitter($consumerKey, $consumerSecret);
echo ‘
<input type=“hidden” value="’.$Twitter->getAuthenticateUrl(null,array(‘oauth_callback’ => “http://”. $_SERVER[“HTTP_HOST”] . $_SERVER[“REQUEST_URI”])).’" id=“twitter_login_url” />’;
$Twitter->getAuthenticateUrl is giving me a url with an auth key on my dev server but it is giving me a url with no auth key on the live server (the server with the same domain as specified in the twitter app.)
any ideas?