开发者

Can you run in localhost an app that use Twitter OAuth?

When you edit your app settings at Twitter.com, you can asked for a return url, bu开发者_如何学JAVAt you can set it to localhost/return. Can you?

I think this is useful in developing time.

When I fill the form with this url: http://localhost/return

I get this error: Not a valid URL format


http://127.0.0.1/return will do the trick!


Add oauth_callback=http://localhost/return as a parameter when you get request_tokens.


Set your callback url in twitter app setting to http://127.0.0.1/.


I spent 2 days to resolve this issue you must set callbac url http: //127.0.0.1/ but it dont help me because when i start my application and request tweeter api it send request at twitter api but respone received on the for ex: http: //127.0.0.1/:2101 but in my browser url http: //localhost/:2101 and twitter api dont understand this,for this you have to manually set the browser URL http: //127.0.0.1/:2101 if u have same isue.At least for me it was the solution


You need to edit your hosts file.

Add something like

127.0.0.1 localhost
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜