2012-07-19 104 views
0

我有我经常从网站使用的JQuery Twitter API插件(from here)。香港专业教育学院最近安装了一个新的网站,但现在得到一个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':)' – 2012-07-19 22:53:59

回答

0

发现问题:我没有配置我的脚本来正确处理用户名。正如你在错误中看到的那样,没有用户名。我的用户名var有一个错误。

谢谢!