【发布时间】:2012-07-19 04:57:21
【问题描述】:
我有 JQuery Twitter api 插件,我经常在各个站点之间使用 (from here)。我最近在一个新站点上安装了它,但现在收到 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 身份验证有关,但我不确定如何更新我的脚本。
以前有人遇到过这个问题吗?
【问题讨论】:
-
dev.twitter.com/discussions/5025 #might_help
:)
标签: jquery api twitter twitter-oauth