如何将 Facebook 集成到 WordPress 注册/登录?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5317435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:45:19  来源:igfitidea点击:

How to integrate Facebook into WordPress registration/login?

wordpressfacebookfacebook-graph-apiwordpress-plugin

提问by Kane

Here's what we hope to accomplish: a WordPress site that will allow users to register/login EITHER with Facebook OR WordPress and have the same access to posts/pages/content. From all the research thus far, this doesn't seem trivial...

这是我们希望实现的目标:一个 WordPress 网站,允许用户使用 Facebook 或 WordPress 注册/登录,并具有对帖子/页面/内容的相同访问权限。从迄今为止的所有研究来看,这似乎并不简单......

Here's our requirements:

这是我们的要求:



User Registration

用户注册

Facebook

Facebook

  • New users can connect with Facebook by clicking a button and then granting the requested permissions to our Facebook App. The permission-grant is a one-time event.
  • They will have to log into Facebook if they aren't already.
  • When they connect for the first time a WordPress account will automatically be created for them. This integrates Facebook and WordPress.
  • This free plugin may be a good starting point to integrate the two systems - http://wordpress.org/extend/plugins/simple-facebook-connect/
  • Here's another one that only handles the WordPress account creation based on a Facebook session. What it's lacking is the ability to use the Facebook session to login after registration (it requries the WordPress username/password). http://wordpress.org/extend/plugins/facebook-registration-tool/
  • 新用户可以通过单击按钮与 Facebook 建立联系,然后向我们的 Facebook 应用程序授予请求的权限。许可授予是一次性事件。
  • 如果他们还没有登录 Facebook,他们将不得不登录。
  • 当他们第一次连接时,系统会自动为他们创建一个 WordPress 帐户。这集成了 Facebook 和 WordPress。
  • 这个免费插件可能是整合两个系统的一个很好的起点 - http://wordpress.org/extend/plugins/simple-facebook-connect/
  • 这是另一个仅处理基于 Facebook 会话的 WordPress 帐户创建。它缺乏的是在注册后使用 Facebook 会话登录的能力(它需要 WordPress 用户名/密码)。 http://wordpress.org/extend/plugins/facebook-registration-tool/

WordPress

WordPress

  • If the users doesn't have a Facebook account or chooses not to connect through Facebook, they can manually create a WordPress account.
  • Required fields are: username, email, password
  • 如果用户没有 Facebook 帐户或选择不通过 Facebook 连接,他们可以手动创建一个 WordPress 帐户。
  • 必填字段为:用户名、电子邮件、密码

User Login

用户登录

Facebook

Facebook

  • If the user has already granted permissions to our Facebook App, they will be auto-logged-in if they have an active Facebook session and visit our website.
  • Otherwise, the user will have to first log in to Facebook.
  • 如果用户已授予我们 Facebook 应用程序的权限,并且他们有活跃的 Facebook 会话并访问我们的网站,则他们将自动登录。
  • 否则,用户必须先登录 Facebook。

WordPress

WordPress

  • The user can choose to login with the username/password they created.
  • 用户可以选择使用他们创建的用户名/密码登录。


Any words of wisdom on how we can accomplish these requirements?

关于我们如何实现这些要求的任何智慧之词?

回答by MarkG

After several trials, the best plugin for this kind of job is http://wordpress.org/extend/plugins/social-connect/It covers not only Facebook but also Twitter, WordPress.com and Google

经过多次试验,这种工作的最佳插件是http://wordpress.org/extend/plugins/social-connect/它不仅涵盖 Facebook,还包括 Twitter、WordPress.com 和 Google

Here you can find some details on installing it http://giannopoulos.net/2011/12/28/how-to-add-facebooktwitteretc-authentication-on-wordpress/

在这里您可以找到有关安装它的一些详细信息http://giannopoulos.net/2011/12/28/how-to-add-facebooktwitteretc-authentication-on-wordpress/

回答by Roman Zenka

Facebook supports OpenID.

Facebook 支持 OpenID。

There is an OpenId plugin for Wordpress I know nothing about.

Wordpress 有一个 OpenId 插件,我对此一无所知。

http://wordpress.org/extend/plugins/openid/

http://wordpress.org/extend/plugins/openid/

回答by fuddin

The best plugin which integrates Facebook (and also Twitter and Google Plus) is WordPress Social Login.

集成 Facebook(以及 Twitter 和 Google Plus)的最佳插件是WordPress Social Login

回答by chifliiiii

回答by Judo

There's a plugin I use on a BuddyPress site named socialsnapinwhich I think should fulfill your criteria (although I haven't tested it with plain WordPress).

我在一个名为socialsnapin的 BuddyPress 网站上使用了一个插件,我认为它应该满足您的标准(尽管我还没有用普通的 WordPress 对其进行测试)。

回答by Rakesh Sharma

try with keywords on wordpress.org :- facebook login. social login, facebook connect There are more and awsome plugins for do this. best i have tried:-

尝试在 wordpress.org 上使用关键字:- facebook 登录。社交登录,Facebook 连接 有更多和 awsome 插件可以做到这一点。我尝试过的最好的:-

FacebookAll(with all facebook social plugins) By sourceaddons

FacebookAll(带有所有 facebook 社交插件)由sourceaddons