Twitter oAuth callbackUrl - 本地主机开发 [英] Twitter oAuth callbackUrl - localhost development
问题描述
是否还有其他人在获取 Twitter oAuth 的回调 URL 以访问其本地主机开发环境时遇到困难.显然它最近已被禁用.http://code.google.com/p/twitter-api/issues/detail?id=534#c1
Is anyone else having a difficult time getting Twitters oAuth's callback URL to hit their localhost development environment. Apparently it has been disabled recently. http://code.google.com/p/twitter-api/issues/detail?id=534#c1
有没有人有解决方法.我真的不想停止我的发展
Does anyone have a workaround. I don't really want to stop my development
推荐答案
Alternative 1.
设置您的 .hosts (Windows) 或 etc/hosts 文件以将活动域指向您的本地主机 IP.例如:
Set up your .hosts (Windows) or etc/hosts file to point a live domain to your localhost IP. such as:
127.0.0.1 xyz.com
127.0.0.1 xyz.com
其中 xyz.com 是您的真实域名.
where xyz.com is your real domain.
备选方案 2.
此外,该文章还提供了替代使用 URL 缩短服务的提示.缩短您的本地 URL 并将结果作为回调提供.
Also, the article gives the tip to alternatively use a URL shortener service. Shorten your local URL and provide the result as callback.
备选方案 3.
此外,它似乎可以提供例如 http://127.0.0.1:8080
作为 Twitter 的回调,而不是 http://localhost:8080
>.
Furthermore, it seems that it works to provide for example http://127.0.0.1:8080
as callback to Twitter, instead of http://localhost:8080
.
这篇关于Twitter oAuth callbackUrl - 本地主机开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!