Skip to content

Instantly share code, notes, and snippets.

@travisvalentine
Last active October 25, 2025 22:50
Show Gist options
  • Select an option

  • Save travisvalentine/8796187 to your computer and use it in GitHub Desktop.

Select an option

Save travisvalentine/8796187 to your computer and use it in GitHub Desktop.
Setup Facebook app to test authentication locally (aka, setting up App Domain)

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 localhost to "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.
@KES777
Copy link

KES777 commented Oct 25, 2025

@Anindya007 yeah, I spent around 2 days to get it setup correctly, but with others I spent less than an hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment