Upvote:1
The usual way is with a letter of invitation from the friend. But notice that this is not required. Special requirements exist for visiting family, but not friends: https://www.canada.ca/en/immigration-refugees-citizenship/services/visit-canada/supporting-documents.html