ryancramerdesign / LoginFacebook

Provides Facebook login, user data, and account creation in ProcessWire 3.x
4 stars 0 forks source link

Oauth redirect issues #2

Open rlambertsen opened 7 years ago

rlambertsen commented 7 years ago

After installing this plugin here LINK I keep getting the same redirect uri issues from facebook. I have triple checked my callback urls and domain names to make sure it all lines up. As Seen here screen shot 2017-10-25 at 9 20 44 pm and here.... screen shot 2017-10-25 at 9 20 35 pm

I have the redirect set in the PW backend as /login-facebook/.... Not sure if the plugin has an error or if I am doing something wrong..... I didn't change any of the plugin code. just installed, setup and attempted to use it

Also this is the error from facebook screen shot 2017-10-25 at 9 25 36 pm

and this is the url the plugin is generating

https://www.facebook.com/dialog/oauth?client_id=125451898215569&response_type=code&scope=public_profile,email&redirect_uri=https%3A%2F%2Fr-dev.site%2Flogin-facebook%2F&state=ERVtY2ViXfBhjznK4tIq/94yBBlrg8zC
mrjcgoodwin commented 6 years ago

I'm also seeing this issue - did you find a fix?

mrjcgoodwin commented 6 years ago

Managed to fix this. It's to do with FB policy changes. You need to add the FB login url to your allowed oAuth URIs field. See this thread where I've posted details: https://processwire.com/talk/topic/16865-pw-3069-plus-pw-login-for-facebook/?tab=comments#comment-163981