CI 묻고 답하기

제목 트위터 연동 질문드립니다.
글쓴이 영등포메시 작성시각 2012/07/23 01:00:39
댓글 : 2 추천 : 0 스크랩 : 0 조회수 : 20878   RSS
 안녕하세요. 홈페이지와 트위터 연동에 관하여 질문드립니다.
(지식이 걸음마 단계라 어이없는 질문일까봐 걱정이 많이 됩니다.)

제가 참조한 라이브러리는  https://github.com/elliothaughin/codeigniter-twitter/tree/master/application 에 있는
config, library, controller 파일입니다.


Twitter 에 App 은 등록해 놓은 상태입니다.
tweet.php (config) 파일에 Consumer Key 와 Consumer Secret 을 설정해 놓았습니다.

페이지에서 tweet_test/auth 를 호출하면 다음과 같은 에러가 발생합니다.

exception 'tweetException' with message '401 | Request Failed: /account/verify_credentials.json - Invalid / expired Token' in /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php:205
Stack trace:
#0 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php(172): tweetConnection->_getResponse('Resource id #77')
#1 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php(110): tweetConnection->_addCurl('http://api.twit...', Array)
#2 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php(502): tweetConnection->get('http://api.twit...', Array)
#3 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php(332): tweetOauth->_httpRequest('GET', 'http://api.twit...', NULL)
#4 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/libraries/tweet.php(19): tweetOauth->call('get', 'account/verify_...')
#5 [internal function]: tweet->__call(Array, Array)
#6 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/application/controllers/tweet_test.php(60): tweet->call('call', Array)
#7 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/system/core/CodeIgniter.php(359): Tweet_test->auth('get', 'account/verify_...')
#8 /home/hosting_users/earballman/www/CodeIgniter_2.1.0/index.php(204): require_once('/home/hosting_u...')
#9 {main}

 
에러 메시지로 구글링을 해보았지만, 원하는 해결책을 찾지 못했습니다.(아마 영어로 적혀있어서 더욱 그런것 같습니다.)

환경설정이 잘못되어 있는 것인지, 프로그램 소스 잘못인지 막막하여 도움을 요청합니다.

전문가님들의 조언 부탁드립니다.
 다음글 체크박스후에 페이징 처리..도움이 필요합니다...ㅠㅠ (5)
 이전글 크롬에서 새로고침시 세션을 마구찍어냅니다 (5)

댓글

영등포메시 / 2012/07/23 09:44:43 / 추천 0
 오늘 다시 해보니 정상적으로 작동하고 있습니다. (CI계의 우렁각시가 있는듯 ㅎ)

불안하긴 하지만, 계속 진행해보고 다른 궁금증이 생기면 다시 여쭤보도록 하겠습니다.
변종원(웅파) / 2012/07/23 10:04:12 / 추천 0
에러메세지는 첫줄에 나와있습니다.

Invalid / expired Token 

트위터 인증용 토큰 생성이 만료됐거나 잘못 됐거나 둘중 하나였습니다.