如何获取Twitter的用户访问令牌?

3
我在我的一些PHP页面中使用了https://twitteroauth.com/。我想获取用户访问令牌和访问秘密令牌。我在这个页面上找到了答案:如何使用php获取Twitter API的用户访问令牌和访问秘密。在两个页面上替换我的消费者密钥和秘密消费者密钥后,我将其上传到我的服务器上,但当我打开twitter-go.php时,我得到了以下错误。
Fatal error: Uncaught exception `'Abraham\TwitterOAuth\TwitterOAuthException'` with message 

'<?xml version="1.0" encoding="UTF-8"?>
<hash> 
    <error>Desktop applications only support the oauth_callback value 'oob'</error>
    <request>/oauth/request_token</request>
</hash> '
in `/home/mediahyp/public_html/tweetme/twitteroauth/src/TwitterOAuth.php:138` 

Stack trace: 

#0 /home/mediahyp/public_html/tweetme/twitter-go.php(13): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/request_t...', Array) 
#1 {main} thrown in /home/mediahyp/public_html/tweetme/twitteroauth/src/TwitterOAuth.php on line 138

有人能告诉我这个错误是什么意思吗? 我是不是漏了什么或其他什么原因。

1个回答

1

注意 - "twitteroauth.com桌面应用程序仅支持oauth_callback值"在Google中找到了最顶部的结果。 - ceejayoz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接