First! To implement the new Facebook OAuth 2.0!
We are pleased to announce OnePage is the first statup (we know of) that has implemented the new Facebook OAuth login which was announced by Mark Zuckerberg a few hours ago at the ongoing f8 conference. What this means for our existing users is that you can login to your OnePage with your Facebook account* automatically. New users can get a complete OnePage in about 3 clicks and 30 seconds.
Of course Joel was the one that did the implementation and talks about it below. I leave you with one quote from Joel
“Facebook's new login is so easy, I feel I have not done anything"
Thanks Zuck, you can have a beer on us.
*As long as you previously added Facebook to OnePage. If not, login normally and add Facebook and it will work for you.
The implementation
If you saw the f8 keynote earlier, you might have noticed how easy Mark Zuckerberg and Brett Taylor made it sound to implement Facebook into your website now. I am very happy to say that it is in fact as easy as they said. In the process of developing OnePage we inherently deal with many social APIs, Twitter and LinkedIn being the others which use OAuth. With OAuth 2.0, the use of signatures is eliminated and instead HTTPS is used to get the access token used for API calls. Implementing the authorisation process is as simple as sending the user to a link, getting a code passed back to your page and then accessing a URL with that code in order to get the access token. Once you've got the access token you can use the new Facebook Graph API to obtain JSON data objects for various information stored within Facebook.
For OnePage, this means we've been able to easily facilitate a process where users can sign up using Facebook and we can grab their Name, Photo, About me, Email and Birthday to add to their OnePage profile. This means the signup process is now shorter than ever before.
