For testing integration with Facebook on local environment your local server should be exposed. I suggest to expose a local server with ngrok Ngrok - Secure tunnels to localhost
Notice Site URL
should be also updated in settings of your facebook app.