在本地主机上测试 Facebook 连接 [英] Testing facebook connect on localhost
问题描述
我正在尝试在我的本地主机上测试 Facebook 连接.在 facebook 开发人员页面的应用程序设置中,我尝试将使用 facebook 登录的网站"更改为 http://localsitename:8888
但出现错误:
I'm trying to test a facebook connect on my localhost. In the app settings in the facebook developer page I tried changing "Website with facebook login" to http://localsitename:8888
but I am given an error:
Error
Site URL must be a URL with a valid domain.
我已经阅读了其他人成功地做到这一点的地方.有没有人找到解决方法?
I have read where others have managed to do this successfully. Has anyone found a work around for this?
推荐答案
看起来 Facebook 只接受 localhost
作为域名,其中没有任何点.
Looks like Facebook accepts only localhost
as a domain name without any dots in it.
使您的本地站点的名称中带有点,然后它应该可以正常工作 - localsite.name
、mytestsite.local
甚至 foo.bar
...
Make your local site’s name something with a dot in it, then it should work fine – localsite.name
, mytestsite.local
or even foo.bar
…
这篇关于在本地主机上测试 Facebook 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!