Twitter应用无效的网址

时间:2013-09-15 18:16:51

标签: twitter

我正在托管网站的开发版本,我们称之为:

http://localhost/mysite

我正在尝试在

上创建一个推特应用
https://dev.twitter.com/apps/new

然而,

的网址
http://localhost/mysite/index.php

的网址
htpp://127.0.0.1/mysite/index.php

不被接受。错误是:

Not a valid URL format

我的问题有解决方案吗?我正在寻找一个解决方案,但是,显然twitter API有一个新版本,我发现的所有解决方案都比API的新版本更旧。请帮忙。

1 个答案:

答案 0 :(得分:2)

如果您通过模拟器或bluestack进行测试,只需将127.0.0.1更改为10.0.2.2

其他网址(27.0.0.1/mysite/index.php)很好。如果您遇到问题,那么首先检查您的localhost是否正常工作,并在清单中使用了android.permission.internet。