Social Login Plugin for Wordpress not working

2019-03-06 07:01发布

问题:

Iv seen answers on this but they all are from at least 2 years ago (that i saw) and none of the remedies worked for me.

I am using the Yith Social Login for Woocommerce, I go to sign in and test and keep getting this error message: "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've white listed every thing i possibly can think of, nothing works.

I am using 0Auth as well (not even sure if its needed)

Anyone got the solution?

回答1:

I think the problem is the plugin doesn't declare the correct redirect url you have defined inside it.

I tried adding this to Facebook valid redirect url and it finally worked:

http://yourdomain.com/wp-content/plugins/wordpress-social-login/hybridauth/

That's what the plugin is redirecting to, and what Facebook try to compare with your valid url redirection.



回答2:

The error message states that your Facebook App's settings are a bit off. You need to add your site's URL to your Facebook App's settings to prevent other sites taking advantage of your Facebook Login.

Here's how to do it:

  1. Open https://developers.facebook.com/apps/
  2. Click on your app
  3. Open Settings from left-side menu
  4. Click Advanced tab
  5. Scroll to Client OAuth Settings
  6. Fill in your site's URL to Valid OAuth redirect URIs

The URI should be the one that is sent to the Facebook when you're trying to log in with the plugin (you can find it from the address, probably something like redirect_url).