Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Parse Facebook Login Issue

Tags:

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 Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.

I have set the example.com/app in Site Url in FB settings. I have the right Parse appId, JSKey. I have put facebook auth details in parse, and parse confirmed it recognized them. I have, in fb, Client OAuth and web oauth enabled.

It requires me, Valid OAuth redirect URIs, so I have put

example.com, example.com/app, example.com/app/page.html.

Nothing fixes the error. I have tried every tweak and every combination. I tried adding and removing the app domain. Tweaking with the example.com/app app folder in Site URL. Maybe not include it.

Nothing helps, I'm stuck, what am I doing wrong? (I'm doing exactly the same on localhost btw, and it works)

like image 245
wildeyes Avatar asked Dec 09 '15 01:12

wildeyes


2 Answers

After the new Developer portal updates, the OAuth redirect URIs can now be found under

Products > Facebook Login > Settings > Client OAuth Settings

or you can access via url: https://developers.facebook.com/apps/{appid}/fb-login/

like image 196
Rich S Avatar answered Nov 13 '22 11:11

Rich S


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

like image 32
vugar_saleh Avatar answered Nov 13 '22 11:11

vugar_saleh