开发者

Using Twitter API - OAuth Callback URLs won't work when developing in a local environment

I am developing an app that uses the Twitter API for authorisation. The app is developed with PHP and 开发者_Go百科CodeIgniter.

My problem is that I'm using MAMP on my Mac, in combination with VirtualHostX. VHX lets you develop using any URL you like, pointed to a local directory - for example, http://dev.mysite.

When OAuth sends me back to my callback URL like this, nothing happens. Setting it to a 'real' live URL on the Internet works fine and without a problem.

So how can I get local, VHX URLs to work with Twitter OAuth?

Thanks

Jack


Twitter doesnot alllow you to register an application unless you provide a real live URL.
You should look for some free hosting with phpsupport to run such an application...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜