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

后端 未结 5 1726
滥情空心
滥情空心 2021-02-13 02:50

When you edit your app settings at Twitter.com, you can asked for a return url, but you can set it to localhost/return. Can you?

I think this is useful in developing tim

相关标签:
5条回答
  • 2021-02-13 03:24

    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

    0 讨论(0)
  • 2021-02-13 03:34

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

    0 讨论(0)
  • 2021-02-13 03:44

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

    0 讨论(0)
  • 2021-02-13 03:45

    You need to edit your hosts file.

    Add something like

    127.0.0.1 localhost
    
    0 讨论(0)
  • 2021-02-13 03:47

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

    0 讨论(0)
提交回复
热议问题