【发布时间】:2012-10-13 04:34:02
【问题描述】:
twitter api always give "Sorry, that page does not exist" error for deleted tweets
Twitter 404 - message":"Sorry, that page does not exist","code":34
您好,我已阅读上述问题,但这些建议并不能解决我的问题。
我的网站上有一个页面,可以让用户验证我的 Twitter 应用程序,然后在他们的时间轴上发布一条推文。
API 在 JSON 响应中返回 {"errors":[{"message":"Sorry, that page does not exist","code":34}]}。
如果我遵循我在其他问题中阅读的建议,将 EpiTwitter 类从
const EPITWITTER_SIGNATURE_METHOD = 'HMAC-SHA1';
protected $requestTokenUrl = 'http://twitter.com/oauth/request_token';
protected $accessTokenUrl = 'http://twitter.com/oauth/access_token';
protected $authorizeUrl = 'http://twitter.com/oauth/authorize';
protected $apiUrl = 'http://twitter.com';
到
const EPITWITTER_SIGNATURE_METHOD = 'HMAC-SHA1';
protected $requestTokenUrl= 'https://api.twitter.com/oauth/request_token';
protected $accessTokenUrl = 'https://api.twitter.com/oauth/access_token';
protected $authorizeUrl = 'https://api.twitter.com/oauth/authorize';
protected $authenticateUrl= 'https://api.twitter.com/oauth/authenticate';
protected $apiUrl = 'https://api.twitter.com';
protected $searchUrl = 'http://search.twitter.com';
也不起作用,当应用程序生成登录链接时,它会转到https://api.twitter.com/oauth/authorize?oauth_token=,表示此页面没有请求令牌。
有人对如何解决这个问题有任何想法吗?
【问题讨论】:
标签: twitter twitter-oauth