In my rails app i have added facebook login using Omniauth I created my app and everything was good on localhost but then i added my url on Valid OAuth redirect URIs and started getting this error:
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
My valid outh redirect url is: http://www.greyshift.co/profiles/new
My domain name is: www.greyshift.co
My site url is: http://www.greyshift.co/
Make sure you have defined app domain at https://developers.facebook.com as its as you are sending in request
http://www.greyshift.co/
is different fromhttp://www.greyshift.co
Also at "Add platform" option at basic setting, select website and provide your Site URL