Note: I had issues with setting up my Facebook app so authentication would work. I'd receive the error at the bottom, and it took me a while to figure out what was wrong
Here are the steps I took:
- Go to
http://developers.facebook.com/, create, and setup your app - When inside the dashboard, click "Settings"
- Click "Add Platform"
- Choose website (for authentication via the web app)
- Add
http://localhost:3000/as "Site URL" (and "Mobile URL" if necessary) - Add
localhostto "App Domains" above - Click Save
This fixed the error I kept receiving:
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.



This solution worked for me. Trying to add localhost as a "Website" (Platform) in the app settings was being rejected because it didn't match my production domains, which I didn't want to remove.
Even though the message was saying it needed to be among my app domains, it turned out that in
with Strict Mode enabled, simply adding
https://localhost:8000/auth/facebook/callbackto theValid OAuth Redirect URIsallowed me to test the authentication with ssl, locally.I should probably also note that
localhostwas already in my "App Domains" in the basic settings (while "https://" and port were being removed when I tried to enter them)