0
안녕하세요. 사용자가 인증 한 후 사용자에게 짹짹을 게시하는 앱을 만들고 있습니다. 라이브러리 및 튜토리얼을 여기에서 사용하고 있습니다. twitteroauth트위터 API가 토큰을 가져올 수 없습니다.
콜백 URL에 도달하여 액세스 토큰을 검색하려고 시도하고 요청의 var 덤프가 Invalid request token
을 반환 할 때까지 모든 것이 제대로 작동합니다.
여기에 코드입니다 :
function authenicateApp() {
//Set app keys
// Connect to twitter and recive token
$connection = new TwitterOAuth('**', '**');
$temporary_credentials = $connection->getRequestToken('http://abc.def.com');
// Redirect to twitter authentation page
header('location:'.$connection->getAuthorizeURL($temporary_credentials));
}
function appPost() {
$connection1 = new TwitterOAuth('**' ,'**', $_SESSION['oauth_token'],
$_SESSION['oauth_token_secret']);
var_dump($connection1->getAccessToken($_REQUEST['oauth_verifier']));
}
가능한 복제본 @stackoverflow.com/questions/11993423/why-does-this-twitter-oauth-api-token-request-fail – dseibert
@dseibert 상당히 다른 질문입니다. – abraham