Twitter oAuth callbackUrl - 本地主机开发 [英] Twitter oAuth callbackUrl - localhost development

查看:80
本文介绍了Twitter oAuth callbackUrl - 本地主机开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否还有其他人在获取 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆