Confused about working with cordova plugins

I’m very new to angular and ionic and trying to integrate facebook account kit in my app. I found a cordova plugin But, I’m not sure how do I use it. Definitely, I can’t write those codes to my controller. Where should I put those? And, I found that most cordova plugins will not work on browsers while development. So how do I develop and test? Actually, I’m totally confused about using the plugins and would be grateful if anyone can provide me a better understanding. TIA.