在本地主机上使用Facebook登录 [英] Use facebook login in localhost

查看:140
本文介绍了在本地主机上使用Facebook登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个项目,需要使用facebook API作为用户登录名. 该文件清除了用facebook登录的登录按钮的用法. 但是,当我在localhost上测试按钮时,它什么也没有给我,没有错误页面,没有弹出窗口.

I am doing a project and need to use the facebook API as user login. The document are clear the usage of the login button of login with facebook. However, when I test the button on localhost, it gives nothing to me, no error page, no popup windows.

我正在使用xampp进行本地开发,并且我填写应用程序设置的网站网址是http://localhost:8880/atrain/

I am using xampp for my local development and the site url that I fill in app setting is http://localhost:8880/atrain/

有人可以帮忙吗?我已经搜索了互联网并更改了主机文件,但仍然没有成功.

can someone help? I have searched the internet and change the hosts file but still unsuccessful.

推荐答案

设置本地服务器以使用标准的http端口(80),并使用带有

Set up your local server to use the standard http port (80) and use a virtual host with a TLD. It can be a fake TLD such as:

localhost.dev

您实际如何完成此操作取决于您所使用的Web服务器类型.

How you actually accomplish this depends on what type of web-server you are using.

这篇关于在本地主机上使用Facebook登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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