在开发环境中使用Facebook的身份验证工作 [英] Working with Facebook Authentication in a Development Environment

查看:129
本文介绍了在开发环境中使用Facebook的身份验证工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在与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屋!

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