Adding Facebook "App Event" tracking to Ionic app?

Is it possible to add Facebook’s event tracking for their App Ads in an Ionic app? The only thing I’ve found is to add the Facebook login to and Ionic app, and the SDK. But no plugins for the event tracking inside the app. Is it ok, or even possible, to add native code to the compiled platforms if there is no Ionic/cordova solution available? I’m not a native developer so I have little to no experience with that.

Thanks for any suggestions.