我有本地開發服務器上運行的TwitterOAuth類和演示,我無法獲得它的授權。我已經在config.php中輸入了新的CONSUMER_KEY和CONSUMER_SECRET。我也將服務器時間同步到NTP。我收到錯誤消息:'無法連接到Twitter。刷新頁面或稍後再試。'Twitter OAuth無法工作(PHP)
var_dump($connection->http_code);
結果:
int 0
任何幫助或提醒,將不勝感激。
我運行PHP 5.3
當我嘗試ping API服務器我不能。
C:\Users\Owner>ping api.twitter.com
Ping request could not find host api.twitter.com. Please check the name and try
again.
這可能是問題嗎?
你可以發佈一個鏈接到演示? – Mob
https://github.com/abraham/twitteroauth – beingalex