Sometimes we may need to test some facebook scripts in localhost environment, all you need to do is create your localhost facebook application just like any other application you’ve created.
Once you finish creating application, your facebook application will work just like any other Facebook application. Just look at Facebook settings I’ve used for my localhost. Only things I’ve specified here are display name and localhost URL.
This application setting should be enough to test any Facebook scripts locally. Good luck!