If your friend or family member wants to visit Canada, they must apply to the Canadian visa office responsible for his or her country or region. A visa officer will review the application and decide whether to issue a visa.
You can help your friend or family member by writing a letter of invitation. It should explain how you will help the person. For example, you may offer to pay for plane tickets or accommodation. A letter of invitation can help, but it does not guarantee the person will get a visa.