Facebook login inside a hybrid app using Cordova and OpenFB

Recently i've been playing with Apache Cordova more and more. It opens up a new set of API's, allowing you to use native features of a device from within a web view using JavaScript.

However one issue i've come across is trying to get Facebook Login to work correctly. Here I will explain the different ways to implement Facebook login with a Hybrid app and which method worked well for me.