<?php
$site_url="http://localhost/asdasd";
....
....
....
....
define('CONSUMER_KEY', $key);
define('CONSUMER_SECRET', $secret);
define('OAUTH_CALLBACK', $site_url.'/callback.php');
?>$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
$request_token = $connection->getRequestToken(OAUTH_CALLBACK);
Abraham Williams a ait oauth u kullanıyorsan
üstteki gibi kod üretmen yeterli.
ben aynı api key ile hem localhostta çalışıyorum hem 2 tane sitede.