Twitter認証にEpiTwittergetAuthorizeUrl()を使用しています。
コード :
<?php
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
require_once 'secret.php';
$Twitter = new EpiTwitter($consumer_key, $consumer_secret);
$url = $Twitter->getAuthorizationUrl();
echo '<a href="' .$url. '">Authorize with Twitter</a>';
?>
このエラーが発生し続ける
「すごい!
このページは無効になりました。提供されたトークン情報を誰かがすでに使用しているようです。このページに移動したサイトに戻って、もう一度やり直してください…おそらく正直な間違いでした。」
URLは問題ないように見えますが、機能しません。
http://twitter.com/oauth/authorize?oauth_token=
?oauth_token =には値が必要ですが、生成されていません!! ヘルプをありがとうsecrets.php
<?php
$consumer_key ='xxx';
$consumer_secret ='xxx';
?>