简体   繁体   English

Wordpress 的社交登录插件不起作用

[英]Social Login Plugin for Wordpress not working

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.我看到了这方面的答案,但它们都来自至少 2 年前(我看到的),并且没有任何补救措施对我有用。

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."我正在为 Woocommerce 使用 Yith 社交登录,我去登录并测试并不断收到此错误消息:“URL 被阻止:此重定向失败,因为重定向 URI 未在应用程序的客户端 OAuth 设置中列入白名单。确保客户端和 Web OAuth 登录已开启,并将您的所有应用程序域添加为有效的 OAuth 重定向 URI。”

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)我也在使用 0Auth(甚至不确定是否需要)

Anyone got the solution?有人得到解决方案吗?

I think the problem is the plugin doesn't declare the correct redirect url you have defined inside it.我认为问题在于插件没有声明您在其中定义的正确重定向 url。

I tried adding this to Facebook valid redirect url and it finally worked:我尝试将其添加到 Facebook 有效重定向 url 中,它终于奏效了:

http://yourdomain.com/wp-content/plugins/wordpress-social-login/hybridauth/ 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.这就是插件重定向到的内容,以及 Facebook 尝试与您的有效 url 重定向进行比较的内容。

The error message states that your Facebook App's settings are a bit off.错误消息指出您的 Facebook 应用程序的设置有点偏离。 You need to add your site's URL to your Facebook App's settings to prevent other sites taking advantage of your Facebook Login.您需要将您网站的 URL 添加到您的 Facebook 应用程序的设置中,以防止其他网站利用您的 Facebook 登录信息。

Here's how to do it:这是如何做到的:

  1. Open https://developers.facebook.com/apps/打开https://developers.facebook.com/apps/
  2. Click on your app点击你的应用
  3. Open Settings from left-side menu从左侧菜单打开Settings
  4. Click Advanced tab单击Advanced选项卡
  5. Scroll to Client OAuth Settings滚动到Client OAuth Settings
  6. Fill in your site's URL to Valid OAuth redirect URIs将您网站的 URL 填入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 ).当您尝试使用插件登录时,URI 应该是发送到 Facebook 的那个(您可以从地址中找到它,可能类似于redirect_url )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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