Many people try to integrate Facebook Login with their web apps. Facebook use OAuth 2.0 for authentication. There is omniauth gem for Rails to handle OAuth. To use Omniauth with Facebook, you need several gems: omniauth, omniauth-oauth2, omniauth-facebook. Though easier than before, you might still meet some problems here and there. Facebook provide Javascript SDK for client-side authentication. One important advantage of this approach is that Facebook maintain this SDK and it will always work. And communication for authentication happens between your browser (or mobile phone) and facebook server, which reduces the load of your web app. All you need is an access token from facebook. With the help of Facebook Javascript SDK, you do not need omniauth for authentication. While omniauth-faceook still provides some useful methods, they can be replace by fb_graph.
Your new post is loading...