2012-07-19 4 views
0

나는 사이트 (from here)에서 자주 사용하는 JQuery Twitter api 플러그인이 있습니다. 필자는 최근에 새로운 사이트에 설치하지만 지금은 401 오류 얻을 : 오류가 같은 외모를 언급하고Twitter API 받기 401 오류

Failed to load resource: the server responded with a status of 401 (Unauthorized) 
jsonp1342737708184({"error":"This method requires authentication.","request":"\/1\/statuses\/user_timeline.json\/?callback=jsonp1342737708184&include_rts=true&count=3&include_entities=true"}) 

라인 :

at: function(tweet) { 
      return tweet.replace(/\B[@@]([a-zA-Z0-9_]{1,20})/g, function(m, username) { 
        return '<a target="_blank" class="twtr-atreply" href="http://twitter.com/intent/user?screen_name=' + username + '">@' + username + '</a>'; 
           }); 
          }, 

내가이의 OAuth 인증을 할 수있는 뭔가가 생각하지만, 나는를 내 스크립트를 업데이 트하는 방법에 대한 확신이 없습니다.

전에이 문제를 겪은 사람이 있습니까?

+1

https://dev.twitter.com/discussions/5025#might_help':)' –

답변

0

발견 : 사용자 이름을 올바르게 처리하도록 스크립트를 구성하지 않았습니다. 오류에서 알 수 있듯이 사용자 이름이 없습니다. 내 사용자 이름 var에 실수가있었습니다.

감사합니다.