1. The Jomsocial User Object
In Jomsocial you can request the User Object with the class CFactory.
How to get the User Object
Including the Jomsocial coreIf you are just customizing the Jomsocial template files or adding new functionalities to Jomsocial pages then the above code is enough.
But if you want to call the CFactory class from outside Jomsocial (for example from another component or from within a module) then you must include the Jomsocial core. In this case, the above code should be:
2. Using Jomsocial Features in your Extension
The Jomsocial API lets you integrate some basic Jomsocial functionalities with your extension.