Facebook changed their user interface for developer apps, so this can be tricky to find. For future people visiting:
- Click
Appsand then select your app. - Click the
Settingsbutton on the left side of the screen. - In the
Basicsettings, click theAdd Platformbutton below the settings configuration. - Select
Websitein the platform dialog. - Enter your URL (
localhostworks here). - In the
App Domainstext input, add your domain that matches the one in the URL. - Save your settings.