在开发环境中使用Facebook的身份验证工作 [英] Working with Facebook Authentication in a Development Environment
问题描述
当在与OAuth2用户客户端服务器端模式Facebook验证工作,有没有什么办法来测试它与当地的开发环境工作的重定向的URI,而?
When working with facebook authentication in a client-side server side mode with OAuth2, is there any way to test it out while working with local development environments for the redirect uris?
很明显,你可以在该IP到您的计算机指定的IP和端口路线80,但有一个更简单的方法来实现这一目标?
Obviously you could specify your IP and route port 80 on that IP to your computer, but is there a more simple way to achieve this?
推荐答案
你不应该有本地开发一个Facebook应用程序的任何问题。结果
刚刚成立的Facebook设置页面上的URL对 HTTP://本地主机/ yourapp / 并照常上班结果
所有的OAuth程序应正常工作。
you shouldn't have any problems developing a facebook app locally.
Just set the url's on facebook settings page to http://localhost/yourapp/ and work as usual.
All the OAuth procedures should work normally.
这篇关于在开发环境中使用Facebook的身份验证工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!