louisondumont / facematch

Facebook Face Recognition wrapper. Submit an image, query Facebook to recognize your friends' faces.
305 stars 88 forks source link

Error while getting getAccessToken #3

Open sarath704 opened 8 years ago

sarath704 commented 8 years ago

Hi , I hit the below url

http://localhost:3000/getAccessToken

I am getting the below error

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

Help me with this

Thanks, Sarath

Adriani6 commented 8 years ago

It's an error with the Facebook app you've created. I had the same issue and I had to transfer it to my web server with a proper domain for it to work. In your Apps Settings, The field "App Domains" must be a domain of the server, for me it's "adriani6.co.uk" then you need to fill in "Site URL" which for me is just "http:///adriani6.co.uk/".

I have to say, I've spent good hour figuring it out myself. Hope it helps.

Skylion007 commented 8 years ago

Someone should really update the readme to reflect this.

TorranceYang commented 8 years ago

If you don't have an external domain, you can turn on "Embedded Browser OAuth Login" and add "http://localhost:3000" to your "Valid OAuth redirect URIs" to get this to work

samj1912 commented 7 years ago

see this https://github.com/samj1912/fbrecog

raindecastro commented 6 years ago

Is there a fix for this already?