facebook_django : Given URL is not permitted by the application config

I'm getting this error for facebook login in local development. I'm using facebook_django package. And my dev server runs on 0.0.0.0:8000. In my site url I've tried setting my site url to 127.0.0.1:8888 and 0.0.0.0:8000 both and both ways it gives the same error

Given URL is not permitted 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.

Sorry You must be a logged in, registered user to answer a question.

Answers

IIRC, Facebook wants an actual domain name. The easiest way to do this is pick a name (say local.dev) and set that as pointing to 127.0.0.1 in your /etc/hosts file. Then set Facebook's domain as http://local.dev:8888 and things should work.

It's been awhile since I've done this, though, so I could be mistaken.