我在我的一些PHP頁面中使用了https://twitteroauth.com/。我想獲得用戶訪問令牌和訪問祕密令牌。我在本頁上得到了我的答案:How to get user Access Token and Access Secret with the Twitter API using php如何獲取twitter的用戶訪問令牌?
在兩個頁面上替換我的使用者密鑰和密鑰使用者密鑰後。我把它上傳我的服務器上,但後來我得到了下面的錯誤,當我打開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
誰能告訴我這是什麼錯誤呢?我錯過了什麼或別的東西。
註釋 - 「twitteroauth.com桌面應用程序只支持oauth_callback值」,Google認爲這是最重要的結果。 – ceejayoz