What if you could log into WordPress using Facebook authentication? I’ve recently been inspired to do more WordPress hacking thanks to the great discussions occurring at WordPress Bits, and this is one of the random thoughts that crossed my mind the other day.
I know that this is possible in some shape or form between the Facebook API and the WordPress plugin system, I’m just not sure how to implement it.
I envision a system similar to OpenID that would allow Facebook users to click a “login” button, be directed to Facebook servers where they confirm that they wish to login to the site, and then are redirected back to the WordPress blog. They can now post comments or perform any other task that they are authorized for, all while associated with their Facebook identity. You could even take this a few steps further and have actions (leaving a comment, writing a post, etc) posted to the mini-feed… and pull in their current profile picture to place beside posts/comments/where ever (there are tons of things you could do with the information from Facebook).
I’m sure it’s morally inappropriate to do something like this, seeing as the Facebook system is a “walled garden” while OpenID is an open extensible platform. However, the power of Facebook’s “social graph” is not to be underestimated. And I’m not suggesting replacing OpenID or the WordPress login system – this would simply be another alternative. Perhaps a better idea is the creation of a flexible login system (think PAM for Linux), making it simple for developers to add new login methods to WordPress. More choice is better, right?
Thoughts, ideas, suggestions? I’ve looked at the OpenID plugin for WordPress, but I’m not sure if that would be a beneficial place to start or not and I’m definitely not yet informed enough to write a plugin to do such (I need to learn more about PHP, the Facebook API, MySQL, and WordPress). Should this be attempted at all? The only reason that this idea struck me as appealing is the shear number of friends, family and acquaintances that I have on Facebook. And I’m pretty sure this isn’t something I can tackle by myself (at least not in any reasonable amount of time).