Reputation: 14246
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?
Upvotes: 3
Views: 2128
Reputation: 8943
CBroe's answer worked well!
If you are working with xampp, you can edit \xampp\apache\conf\extra\httpd-vhosts.conf
and add another virtual host. also edit \windows\system32\driver\etc\hosts
file and add a reference to the new host.
hosts: added
technotronic.fb 127.0.0.1
httpd-vhosts.conf: added
<VirtualHost *>
DocumentRoot "E:/xampp/htdocs/technotronic"
ServerName technotronic.fb
<Directory "E:/xampp/htdocs/technotronic">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This fixed the problem for me.
Upvotes: 0
Reputation: 96383
Looks like Facebook accepts only localhost
as a domain name without any dots in it.
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
…
Upvotes: 3