0

我有一个网站..以前当我在我的博客中上传新帖子时..它会自动发布到 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'
        ),
    )
),

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

4

1 回答 1

0

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

于 2012-10-07T22:38:26.503 回答