繁体   English   中英

如何使用Facebook凭证登录Wordpress

[英]How to login in wordpress using facebook credential

我一直在尝试使用Facebook API构建登录系统。 我已经使用facebook API成功完成了用户注册,然后登录,这是在获取facebook的用户数据之后使用wordpress内置函数wp_create_userwp_signon完成的。 现在,当用户注销并尝试登录时,我想让用户使用Facebook凭据而非密码登录。 ie if email exist then login by email and facebook identifier or similar something 几天来我一直在寻找解决方案。 但是没有运气。 我的代码是:

if( email_exists( $email ) || username_exists( $username ) ){
  // ** how to login using facebook credential rather than using password 
}

暂无
暂无

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

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