Skip to content

Instantly share code, notes, and snippets.

@brilon
Created October 27, 2012 21:18
Show Gist options
  • Save brilon/3966314 to your computer and use it in GitHub Desktop.
Save brilon/3966314 to your computer and use it in GitHub Desktop.
修复dabr登录时的错误
关键词:奶瓶腿,dabr, 大波,推特,twitter, tweet, oauth, proxy, itap
登录奶瓶腿、大波时,出现无法登录推特的情况,错误信息为:
404: {"errors":[{"message":"Sorry, that page does not exist","code":34}]}
出现问题的原因并不是因为oauth代理(比如itap),而是因为之前一直用version 0的api登录
解决方法
打开common/user.php,把下面一行:
$user = twitter_process('https://api.twitter.com/account/verify_credentials.json');
修改为:
$user = twitter_process('https://api.twitter.com/1.1/account/verify_credentials.json');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment