简体   繁体   中英

Wordpress/WP Social Login error while logging into Facebook

If I am not logged into facebook on browser, then I was getting following error:

You are not logged in: You are not logged in. Please log in and try again.

If I am logged into facebook then I was getting below 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.

I was using WP Social Login plugin on Wordpress installation.

Below is the solution.

While implementing it on my website: http://www.mahol.pk , I was able to have facebook login working by doing following:

1) In the facebook app, create a 'Facebook Login' product by clicking on '+Add Product' on the left side panel.

2) Set the following settings in the 'Facebook Login':

客户端OAuth设置

Please note that I had to add both www and non-www URLs in Valid OAuth redirect URIs. Hope it helps anyone who gets this error. I was stuck with this issue for two days :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM