Error: Too many redirects occurred trying to open “https://www.facebook.com/dialog/oauth?client id =0000000000 : I am getting the error Too many redirects occurred trying to open “https://www.facebook.com/dialog/oauth?client id while trying to login with facebook.

Valid OAuth redirect URIs of my app is given as http://localhost:8000/

What can be the issue ?