【问题标题】:Twitter's latest OAuth system conflictTwitter最新的OAuth系统冲突
【发布时间】:2012-10-07 16:18:24
【问题描述】:

我有一个网站..以前当我在我的博客中上传新帖子时..它会自动发布到 Twitter。但是自从新版本的 OAuth 系统..它不再工作了...谁能帮我理清要更改的内容?

我的代码是:

'Twitter'=>array(
    'enabled' => true, //set to false to shut off twitter integration
    'username' => 'blogspott', //your twitter.com username
    'password' => 'W3Sw9OpW6HvZYl', //your twitter.com pasword
    'consumer_key' => 'TdQS15VHBdZNIrQ7RPqVQ',
    'consumer_secret' => 'B2Xe5h3lHXVXUgoCAxgAIdJDTeBf6AywRoGiTwB7I',
    'oauth_token' => '283508422-FkiIyZq2tpx1PQOyBLyWyomXY9OdMKxxSKGcg9d3',
    'oauth_token_secret' => '548kxcZCvhytdRkJ405QeWONvMyXNEpSZszIMEYU4W4',
    'tweet'=>'#%POST% for just %URL-TO-POST% %LINK%',

    // Bit.ly / URL Shortening
    // Within your Tweets, auto-append short URLs i.e., bit.ly/s8dJksm, to save on space. 
    // Sign up for an API account at http://bit.ly, and place the information
    // for that account in the box below
    'short_url'=>array(
        'append_short_url'=>false,  
        'short_url_provider'=>'bit.ly',   // current option: bit.ly only (default), more soon!
        'bitly'=>array(
            'login' => 'o_78ocugrkqtf',
            'api_key' => 'R_734dbe3be47605c405f4e19ec35eb617'
        ),
    )
),

我在这里使用了正确的键..我已经仔细检查过。

【问题讨论】:

    标签: php twitter twitter-oauth bit.ly


    【解决方案1】:

    Twitter 最近没有更改其 OAuth 系统。它不关心有争议的 Twitter API 1.1。因此,请确认您正在按照 Twitter 的要求执行此操作,并且您没有使用已弃用的端点(Twitter 最近删除了其中一些端点)。

    【讨论】:

      猜你喜欢
      • 2010-11-26
      • 2012-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-03
      • 2018-12-09
      • 2020-06-12
      • 2011-02-16
      相关资源
      最近更新 更多