-->

Is localhost not saved anymore in “App Domain”?

2020-07-25 09:07发布

问题:

In the App configuration on Facebook, I was able to save "localhost" as App Domain for my local testing while building the page. Now after typing localhost - it is just not saved. other domains are saved with no problem.

Any idea?

Is local testing option had ended? What other option do we have?

回答1:

http://dyn.com/dns/dyndns-free/

Use DynDNS service so you can access your computer (localhost) from internet via domain eg ltye.dyndns.org

Dyn’s legendary free DNS service allows you to create a hostname that points to your home or office IP address, providing a easy URL for you to remember anywhere you have internet access.

Make sure you download DynDNS client http://dyn.com/support/clients/ so that your IP is synchronized automatically with DynDNS service.



回答2:

As you in the attached image, localhost working perfectly:

Plush I tested app configured for localhost: https://apps.facebook.com/myapp, it works perfectly as well

You may be omitting secure canvas url section



回答3:

You could add an entry in your host file like this...

127.0.0.1 debugging.myfacebookapp.com

Then you can set your 'App Domain' to 'debugging.myfacebookapp.com' which is essentially localhost... Simples :)



回答4:

See https://stackoverflow.com/a/14142088/443359

You don't need to do anything special. Just set App Domains to localhost and Website with Facebook Login to http://localhost:3000



标签: facebook dns