开发者

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

开发者 https://www.devze.com 2023-02-19 18:52 出处:网络
I am developing an app that uses the Twitter API for authorisation. The app is developed with PHP and 开发者_Go百科CodeIgniter.

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

精彩评论

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