English 中文(简体)
使用Facebook API创建新的Wordpress用户
原标题:Creating new Wordpress users with Facebook API

我正试图允许新用户使用他们的脸书帐户注册我的Wordpress网站。我知道如何手动创建一个新用户,但我不确定如何处理用户已经使用与他们的脸书帐户不同的电子邮件地址注册了网站的情况。

我需要创建一个官方的WP用户,但我不希望已有的用户最终拥有两个不同的帐号(如果他们的脸书电子邮件与已有的电子邮件不匹配)。我不确定是否有办法将多封电子邮件分配给一个帐户。即使有,我怀疑这也会有问题。

处理这件事的最好方法是什么?

最佳回答

如果有人关心,我在创建新用户时为其添加了一个元字段。这很容易用update_user_meta()。此元字段保存用户的facebook id,因此我可以在每次创建新用户时检查它是否已存在。使用get_users()

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签