【发布时间】:2016-02-05 10:09:45
【问题描述】:
我在一些 PHP 页面中使用https://twitteroauth.com/。我想获取用户访问令牌和访问秘密令牌。我在这个页面上得到了答案:How to get user Access Token and Access Secret with the Twitter API using php
在两个页面上替换我的消费者密钥和秘密消费者密钥后。我将它上传到我的服务器上,但是当我打开 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
谁能告诉我这个错误是关于什么的?我错过了什么或其他什么。
【问题讨论】:
标签: php twitter twitter-oauth