I am getting:
Given URL is not whitelisted in Client OAuth Settings: This redirect failed because the redirect URI is not whitelisted in the app’s C
I'm also faced this problem. On my situation site url writen with "www". If you site adress http://example.com then http://www.example.com is different website for facebook sdk. In facebook application console go
Settings > Advanced > Client OAuth Settings >Valid OAuth redirect URIs
Write here www version also. It must work