【问题标题】:EpiTwitter Now Returning 'Sorry, that page does not exist', Error Code 34, Recommended Changes Don't WorkEpiTwitter 现在返回“抱歉,该页面不存在”,错误代码 34,建议的更改不起作用
【发布时间】:2012-10-13 04:34:02
【问题描述】:

twitter api always give "Sorry, that page does not exist" error for deleted tweets

Using Twitter API has started giving a Sorry Page does not exist error even though it worked earlier on

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


    【解决方案1】:

    抱歉,

    我知道 Twitter API 已更改,但没有看到类文件已更新。

    对于遇到相同问题的其他人,只需从此处更新您的文件:

    https://github.com/jmathai/twitter-async

    请注意有一个名为 EpiSequence.php 的新文件(虽然我还不确定它的用途是什么)。

    起初我认为文件尚未更新以使用新的 api url,因为我看不到任何显示最近提交迹象的内容。

    【讨论】:

      猜你喜欢
      • 2017-12-12
      • 2015-06-24
      • 2016-02-26
      • 2012-10-06
      • 2023-02-20
      • 2021-07-04
      • 2019-09-10
      • 2018-10-16
      • 1970-01-01
      相关资源
      最近更新 更多