I can get request token when using domain name, but when i used ip as domain name, it doesn’t work.
Here is my code:
//using domain name
$twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
// Requesting authentication tokens, the parameter is the URL we will be redirected to
$request_token = $twitteroauth->getRequestToken(‘http://abc.com/getTwitterData.php’);
//using ip as domain name
$twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
// Requesting authentication tokens, the parameter is the URL we will be redirected to
$request_token = $twitteroauth->getRequestToken(‘http://203.189.100.95/getTwitterData.php’);
Note: getTwitterData.php = is a page that get data from twitter
Does it has any solution to get request token when using ip as domain name or not?
Thank in advance!