Facebook Login with "accounts-facebook" doesn't work on mobile apps

I’m sure I’m missing something.

It works totally fine on the web, but porting to Mobile this no longer works. What am I missing here, another package?

Aaaand I think this is the solution: adding the cordova plugin

This is a fork of the official plugin for Facebook in Apache Cordova that implements the latest Facebook SDK. Unless noted, this is a drop-in replacement. You don’t have to replace your client code.

The Facebook plugin for Apache Cordova allows you to use the same JavaScript code in your Cordova application as you use in your web application. However, unlike in the browser, the Cordova application will use the native Facebook app to perform Single Sign On for the user. If this is not possible then the sign on will degrade gracefully using the standard dialog based authentication.