【发布时间】:2011-12-26 05:54:19
【问题描述】:
我在本地开发服务器上运行 TwitterOAuth 类和演示,但我无法对其进行授权。我已经在 config.php 中输入了新的 CONSUMER_KEY 和 CONSUMER_SECRET。我还将服务器时间同步到 NTP。我收到错误消息:“无法连接到 Twitter。刷新页面或稍后再试。'
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.
这可能是问题吗?
【问题讨论】:
-
你能发布一个演示链接吗?